Notifications
Announcements
In a Canvas App Form I have a number of fields. When a field is filled, I want another field to change its value to a 'default' value d
depending on what has been changed. How do I control the value of a field from another field's OnChange event?
set text in box 2 to something like
defaultVar
and onchange of textbox 1 to something liek
Set(defaultVar,"Here I am")
Once you type in box one, then click anywhere outside of it, box 2 will display the defaultVar.
@TheRobRush 's solution works perfectly, but personally I tend to only go via a variable if it's triggering multiple changes. If you are only using this one scenario, try this in the 'Text' property of the second box:
If( IsBlank(The first text box), Blank(), "The default text" )
Nick
Yes @nickellis74 's solution is absolutely viable as well, I tend to use a lot of variables haha.
Hi,
When the end date changes , the email status should be changed. Any suggestions?
Use the default selected items, or default selected property of the dropdown/combobox control.
have invisible of this page do an UpdateContext({defState:"Default Choice"}), then add another UpdateContext({defState:"New Choice"}) to the OnChange of your datepicker
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272