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
7 replies
Subscribers
7 subscribers
Views
2549 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, need help on my requirements where in I need to set fields on my form as req
Jess
over 10 years ago
Hi, need help on my requirements where in I need to set fields on my form as required. I have read that advance form utilities will do the trick but however I'm getting error while trying my code. Please see me code below and let me know if I mis something.
if (window.FormAPI.getValue("button1").id=="Create")
{
window.FormAPI.setRequired("text4",true);
window.FormAPI.setRequired("text6",true);
window.FormAPI.setRequired("text9",true);
window.FormAPI.setRequired("text10",true);
window.FormAPI.setRequired("radio22",true);
window.FormAPI.setRequired("dropdown14",true);
}
else
{window.FormAPI.hide("hidden24");}
TIA!...
OriginalPostID-120790
OriginalPostID-120790
Discussion posts and replies are publicly visible
Parents
0
subhankarb
over 10 years ago
Hi Jessica, You can not stop the form onsubmit event though we are setting the fields as required. You can go for individual field level validation to retuen true or return false based on button selection.This will not allow the form to sumbit unless all the fields are returning true using js validation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
subhankarb
over 10 years ago
Hi Jessica, You can not stop the form onsubmit event though we are setting the fields as required. You can go for individual field level validation to retuen true or return false based on button selection.This will not allow the form to sumbit unless all the fields are returning true using js validation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data