There is Probably a better way to do this, but I do it this way. Since it's a manual screen and not a form, forms have built in require options in the properties for fields. But on a manual check. I Do two things.
1. Add logic to my save button DisplayMode. I do a IF(isBlank(Textbox1.Text) || isBlank(Textbox2.Text),DisplayMode.Disabled,DisplayMode.Edit) This will make the button not active or clickable until the fields are field out.
2. Create labels near the field, and put in the *Requires a Value in red text, and make it's visable based on having a value using isBlank(Textbox1.Text)
You can access the Entity and mark specific fields as required. If a user attempts to submit the form they will be told that missing data is required. Using this setting should alwo include a visible * to indicate the field is required.
@cwebb365 it works now. Was an error on my behalf. I put the code within Onselect instead of Displaymode.
One more question: If they try to click on submit (and it won't because those fields are empty) can an error message pop up in red saying to fill out the required fields. I know how that I would have to create a label and then make it visible IF submit button does not run properly, fails or some sort like that. Is that possible?
@cwebb365 It works but how do I only let the error message pop up if they click on the submit button and it won't submit due to the missing fields. Currently the error message pops up until the fields are filled .
For example, in the screenshot (app 33), I would like that invisible error message to pop up once the flow fails. It failed because the form hasn't been submitted yet, so a PDF copy cannot be made.
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Did you miss the call? Check out the Power Apps Community Call here.
We are excited to announce the Power Apps Super Users!
Check out our new profile badges recognizing authored solutions!