Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
4428 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a Sail form with a confirmation message set on the submit button and mult
smcgill
over 9 years ago
I have a Sail form with a confirmation message set on the submit button and multiple required fields, including some set within an applyComponents function. My issue is that if a required field is not completed but the user clicks on the submit button the confirmation message is displayed before the fields are shown in error.
I have added an indicator for one of the fields and added this as a condition to the confirmation message and this works for that one field. Is there any way to check if any required fields are missing without having to put indicators on every required field? What would be the best way to do this?
OriginalPostID-149851
OriginalPostID-149851
Discussion posts and replies are publicly visible
Top Replies
Siva
over 9 years ago
+1
Certified Lead Developer
Hi McGill, One option is you can disable the button if any one of the required field is empty. Enable the button only when all the required fields are not empty.
Parents
0
Poorna Guduri
A Score Level 1
over 9 years ago
Hi smcgill, a combination of a!buttonWidget() with a "validate" parameter must work. The parameter validate says the button that validate all the required fields on the form and do not submit the form unless they all are filled. Please find the attached snippet code for reference. Hope it helps.
Sample Code.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Poorna Guduri
A Score Level 1
over 9 years ago
Hi smcgill, a combination of a!buttonWidget() with a "validate" parameter must work. The parameter validate says the button that validate all the required fields on the form and do not submit the form unless they all are filled. Please find the attached snippet code for reference. Hope it helps.
Sample Code.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data