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
8 replies
Subscribers
7 subscribers
Views
3143 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi All, I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F
upendram803
over 9 years ago
Hi All,
I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (Field1) in my form. In my use case, if Button1 is clicked and Field1 is blank I need to display validation message at the end of form just above button. For this I am using validations property in the a!formLayout(). However, form is getting submitted instead of validating field.
Please find my code snippet below:
validations:{if(and(isnull(ri!Field1),ri!btnAction = "Button1"),,a!validationMessage(
message: "Please provide required value",
validateAfter: "SUBMIT"
),{})
It works fine if I remove ri!btnAction = "Button1" but I need to include button action in condition.
Is anyone come across such situation. Any help would be appreciated, TIA !!
OriginalPostID-181112
OriginalPostID-181112
Discussion posts and replies are publicly visible
Parents
0
upendram803
over 9 years ago
Thanks for reply Sonal !!
i want form validation means validation message at the bottom of the form just above button not on field. I tried that validation group also but ri!btnAction = "Button1" condn. not being checked, hence form is submitting. Is there any way to validate based on button value after clicking any of the button. Thanks !!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
upendram803
over 9 years ago
Thanks for reply Sonal !!
i want form validation means validation message at the bottom of the form just above button not on field. I tried that validation group also but ri!btnAction = "Button1" condn. not being checked, hence form is submitting. Is there any way to validate based on button value after clicking any of the button. Thanks !!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data