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
19 replies
Subscribers
8 subscribers
Views
11372 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Validations
niharikas931
over 7 years ago
Hi,
I was trying to put a form validation on click of a button i.e a!buttonWidgetSubmit but that interface is called by wrapper interface that implemented 'Choose' function to break down the interface into sections.
The validation works as expected for the first time, it appears after clicking on submit button but if I go back and forth in that form, and come back to interface where the validation is applied, the validation message is showing even though I havent click on the Submit button.
I tried creating a local Boolean variable and reset when submit button is clicked. In validation, I was checking for that variable to show the validation message but it is not working.
Could you suggest anything that will work in this case.
OriginalPostID-237292
Discussion posts and replies are publicly visible
0
saravanann
over 7 years ago
Hi
It looks like once the child UI is loaded for the first time ,it is not getting refreshed . Can you try using with() in the child UI.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 7 years ago
Can you please use with for this. It will work, i have handled same situation once.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharikas931
over 7 years ago
I am using with() in the child element.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 7 years ago
niharikas can you please attach your code here. That can help us to understand the issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rajasekhar Pamidipati
A Score Level 2
over 7 years ago
Hi Niharika,
As per my understanding, I think you can use validationGroup for this issue. I have added a sample code for that and it is working fine for your requirement. Just take a look.
Test Rule.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharikas931
over 7 years ago
I am attaching here the sample code.
sampleCode.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharikas931
over 7 years ago
rajasekharp,
The sample you attached is not fit in my scenario.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharikas931
over 7 years ago
Any other suggestions...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Colton Beck
over 7 years ago
What's the use case for using validation on the button? Why not explore options to validate dynamically at the field-level?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
niharikas931
over 7 years ago
because the field which we are validating here is not in this interface, it was selected in previous interface and we are validating it before submitting the form.
We cannot restrict user in previous screen while selecting as per business requirement.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>