Hi,
I need to show a check box in UI on click of Submit button, if there is a validation triggered on Submit.
The check box should not be visible otherwise.
If there is no validation getting triggered in UI then the form should just submit.
How can we achieve this.
Thanks in advance.
Discussion posts and replies are publicly visible
so the submit button doesn't submit? What's the flow you're going for?
If there is no validation error in the form then the form should get submitted.
If there is a validation getting triggered on the form on click of submit then I need to show a checkbox in the same form.
You could do something using a local variable as a counter. Have an a!save in your submit that increments the local variable up one. And on the checkbox have the showWhen be when the local variable is greater than zero
That's tricky. The saveInto in a button will only trigger if all validations are OK.
My suggestion would be to have a two-step submit. First show a button "Validate" and then the submit button.