Within a SharePoint list form modified in PowerApps, I have a toggle, Toggle1.
I would like to set the value of a text field 'PWA', when the toggle field is False.
How would I do this please?
Solved! Go to Solution.
@KevHouston
Create a variable to hold the value you want to set in the TextInput_PWA in the OnVisible property of the screen
Set(myDefaultValue, "")
Put this code in the OnUnCheck property of the toggle
Set(myDefaultValue, "your text here")
Set(myResetDefault, true); Set(myResetDefault, false)
Then put this code in the Default property of the text input
myDefaultValue
And this code in the Reset property of the text input
myResetDefault
---
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."
@KevHouston
Create a variable to hold the value you want to set in the TextInput_PWA in the OnVisible property of the screen
Set(myDefaultValue, "")
Put this code in the OnUnCheck property of the toggle
Set(myDefaultValue, "your text here")
Set(myResetDefault, true); Set(myResetDefault, false)
Then put this code in the Default property of the text input
myDefaultValue
And this code in the Reset property of the text input
myResetDefault
---
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."
Thanks for the response and details @mdevaney
Having slight issues.
On the OnUncheck fx of the Toggle, I am entering as you listed;
Set(myDefaultValue, "your text here")
Set(myResetDefault, true); Set(myResetDefault, false)
Do I need to add a , or & or &&? Sure its simple on how the two lines act together, but cannot figure it out. It doesnt like with I add & or a comma.
Do I not need to declare the myResetDefault variable initially?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
53 | |
41 | |
36 | |
30 |
User | Count |
---|---|
241 | |
74 | |
71 | |
69 | |
65 |