Okay this is super weird....
I've got an "Edit Form" control with datacards.
Within one of the datacards I have a button and a textbox. The "Text" of the textbox is set to "var" and the button's "OnSelect" is set to "Set(var, "Hello World")".
If I press the button, nothing happens.
Now for the fun part:
Same setup. Except, I'm using "var2" instead of "var" and the button and textbox are not in the datacard. They are in the root of the screen.
Here is what these two look like after I press both buttons: (reminder, The one in the datacard is on top, and the one on the root of the screen is on the bottom)
I do not understand what's happening here.
It happens on a different screen and form within the same app, but works fine I different app I built about 3 months ago.
Any information is greatly appreciated and I thank anyone who took the time to read this post. 😁
Solved! Go to Solution.
What is your DefaultMode of the Form and the Item property of the form?
If the form is in New mode by default, you should not see the problems you are. If it is in Edit mode, then you need to supply a valid record for the Item property of the Form. Same for View mode...need a valid Item record.
So either set the form DefaultMode to New, or provide a valid record for the Item or set the Item to Defaults(yourDataSource).
I hope this is helpful for you.
Update:
I just created a completely new app to test this and I'm getting the same result.
Was there some sort of change to the way edit forms work in PowerApps recently?
What is your DefaultMode of the Form and the Item property of the form?
If the form is in New mode by default, you should not see the problems you are. If it is in Edit mode, then you need to supply a valid record for the Item property of the Form. Same for View mode...need a valid Item record.
So either set the form DefaultMode to New, or provide a valid record for the Item or set the Item to Defaults(yourDataSource).
I hope this is helpful for you.
That was it!
Thank you So Much!!!
User | Count |
---|---|
150 | |
100 | |
89 | |
78 | |
58 |
User | Count |
---|---|
194 | |
186 | |
106 | |
99 | |
91 |