Hi, PowerApps Team,
I am using the latest PowerApps version 3.18042.20. I have a field "Item_Qty" with data type of int. I would like it to have a default of null deliberately set. Otherwise, the value could be carried over from other records in different form. In the data card for this field, I used "" for the default instead of "ThisItem.Item_Qty".
This setup works out fine in the edit mode, but when I ran the app in the "Play" mode, I encountered two problems; (1) instead of null value in the field, it got a value of zero (0) showing up, and when I tried to enter a value (other than 0), it would not take it. It looked like this field would not take any input from the keyboard. This is a required field, and the form couldn't be submitted as a result.
In summary, the app in Edit mode works, and the app in "Play" mode does not work. This means I can create an app for myself, I can't share it with others. In the past I have had occasions that the behaviors of the app have been different between Edit and Play mode.
Can you offer some help?
Solved! Go to Solution.
@tommyly, I'm thinking you need to clear the globalVarID variable when you're done on the screen. This cleans things up.
Also, instead of using a condition to tell the form whether to be in edit or new mode, you can just do it straight from the edit and add buttons on the previous screen. It saves you guess work and conditions.
That seems to be more consistent: using EditForm or NewForm from the previous screen. Thanks!
I'm guessing the problem I had may have had to do with a discrepancy in the order in which events trigger versus when forms update. My initial instinct is that everything happens chronologically, but there may be some unexpected timing that cased the form to update out-of-step when altering it (e.g. EditForm/NewForm) in an OnVisible event.
Anyway, I will start using EditForm and NewForm from the invoking screen rather then rely on an if-statement within an OnVisible event.
The syntax solution metioned earlier is probably specific to the other user's app/rules. It would be best if you create a new topic and post details specific to your issue so we can help. If there is a specific action that doesn't work in Play mode, then providing the rules for that action would be a good start.
@AllenKim, I am having a similar issue the past couple days, which I have posted about here: https://powerusers.microsoft.com/t5/General-Discussion/Bug-date-field-not-getting-saved-in-play-mode...
When I turn off the "Delayed Load" setting, it seems to be fixed. Could this be a bug?
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.