Announcements
Hello everybody!
I have 4 fields that is required. I want to change the visibility of them when I submit the form. If the form is valid then nothing will show up and form will be submitted. If the fields that must be filled are empty then I want to make the error field visible which will say This are must be filled. ErrorMessage12_1, ErrorMessage14_1 are examples that I want to show depending on form validation. The function I wrote onselect property of the button is down here.
Could you help me with it?
Thank you for your help
Hi @Gates92 ,
For Edit forms, there is already a built-in function that makes it display an error message when the required field is empty:
If required field is empty, SubmitForm will not success, Form.Valid is not necessary. So OnSelect of your Button:
SubmitForm(Form1);Navigate(BrowseScreen1)
Best regards,
I don't know why but this solution does not work for my situation. I basically have 4 fields that must be filled and one of them is a dropdown list. I want to change the visibility of the error messages when press the submit button and I want to customize the error message. ErrorMessage11_1, ErrorMessage12_1 etc.
I don't get what you mean by this does not work. Could you please share the result what you have got if using the solution?
When I only make the fields required it keeps submitting the form eventhough some fields are not filled and the error message does not show up.
There must be something wrong in the Edit form. Please try and add it from insert pane and customize it from scratch instead of copying another one:
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 329 Most Valuable Professional
11manish 209 Super User 2026 Season 2
Mohsin Ali 179