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
3598 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
In UI, for a submit button, if a confirmMessage text is set along with a validat
smrutis
over 9 years ago
In UI, for a submit button, if a confirmMessage text is set along with a validationGroup, is there a way to handle the confirmMessage ONLY if the validation group is validated?
Now the confirmMessage pops up along with the validation errors if in case of any. Can we control the order? anyone please?
OriginalPostID-166312
OriginalPostID-166312
Discussion posts and replies are publicly visible
Parents
0
Tom Ryan
Appian Employee
over 9 years ago
If you pass an empty value for the confirmMessage, it doesn't show the popup. Based on this, you can use the logic for your validations to either show a confirmation message or not. This will look something like:
a!buttonWidgetSubmit(
label: "Submit",
style: "PRIMARY",
confirmMessage: if(rule!<YOUR VALIDATION LOGIC>, "<YOUR CONFIRMATION MESSAGE>, {}),
saveInto: {}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tom Ryan
Appian Employee
over 9 years ago
If you pass an empty value for the confirmMessage, it doesn't show the popup. Based on this, you can use the logic for your validations to either show a confirmation message or not. This will look something like:
a!buttonWidgetSubmit(
label: "Submit",
style: "PRIMARY",
confirmMessage: if(rule!<YOUR VALIDATION LOGIC>, "<YOUR CONFIRMATION MESSAGE>, {}),
saveInto: {}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data