To avoid horrendously huge nested if statements, is there an equivalent of a Return statement to quickly jump out of a formula:
If(!IsBlank(txtActualQtyDelivered_3.Text), Set(vActualQty,RGBA(255,0,0,1)); Set(valid,false);) if(!valid, Notify("Please fill out all the required fields."); Return;) // next statement - input fields all valid
There is not, but you might want to consider a slightly different design approach. Rather than having a user hit a button to then be confronted with an error, instead perhaps disable the button until the form is completed. Then there is no need for the complex logic (except in your DisplayMode property - which can be offset to another control).
Have your controls be more dynamic on the form to display the fact that they are required rather than have the user have to figure it out from an error message.
Just a thought...I hope it is helpful for you.
I have had to learn how to control the user experience within PowerApps available modifers:
(ie I will have a button that runs a flow, but i want to make sure that the data I am sending in the flow is ready.
Good luck crafting solution
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!