Hi Power App Community,
I have a request that should have a simple solution but I cannot figure out how to do it.
I created a button and want that button to enter a value of 27 in a text input field. The text input field is later used in a calculation and I got that portion of it working. The text input field already has a number in there (6) and I want to replace that number with 27 every time I press this button. How do I do it using OnSelect? Any help is appreciated.
Solved! Go to Solution.
Put this code in the OnVisible property of the screen.
Set(myCustomValue, Blank())
Use this code in the Default property of the Text Input you want to change to 27.
myCustomValue
Finally, take this code and use it in the OnSelect property of the button
Set(myCustomValue, 27);
Reset(Text_Input_FieldName);
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Put this code in the OnVisible property of the screen.
Set(myCustomValue, Blank())
Use this code in the Default property of the Text Input you want to change to 27.
myCustomValue
Finally, take this code and use it in the OnSelect property of the button
Set(myCustomValue, 27);
Reset(Text_Input_FieldName);
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Did either @eka24 or I solve your question. If yes, please accept as solution. You can accept more than one solution.
Neither one worked.
I'm trying different combinations right now to get it work and will select a solution when I'm done.
I followed your instructions but when I click run and then click the button, nothing happens. No errors either.
From my tests the comma "," should be replaced with a semicolon ";" using @mdevaney approach.
After chaning this the button works fine in my testapp.
kind regards,
David
@Anonymous
The reason I used commas is because my PowerApps tenant locale is set to English. Those with other languages must used semi-colons instead of commas. So far I know this is the case for Dutch, Spanish and Portuguese. Others definitely exist.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
User | Count |
---|---|
253 | |
122 | |
106 | |
54 | |
48 |