Is there a way to have a submit button that runs a validation group but doesn't care about required fields?

Certified Senior Developer

We have a wizard of multiple steps that can be filled in by the user in any order, so "required" fields aren't actually required to be filled in until the final step (at which point we are checking which ones are left blank and requiring the user to go back and fill them in before final submission). However, we also have several fields that need to run more complex validations. Is there a way to have a submit button run validations for a validation group, but not check on the required status of fields?

 

Alternately, is there a good way to approximate the look of the "required" asterisk without setting the required attribute of a field?

  Discussion posts and replies are publicly visible

Parents
  • One other solution might be to build the entire form out of sections that are conditionally displayed based on a variable. The "Next" and "Previous" buttons aren't Submit buttons, they just increment and decrement that variable. Only the final button, which you only display when the value is set to display the last page, is a Submit. All the required fields stay required, they stop you from submitting, but you can freely navigate to every part of your form.

    Nice bonus is that it only takes up 1 User Input node on the process model and you don't have to create a bunch of loops.
Reply
  • One other solution might be to build the entire form out of sections that are conditionally displayed based on a variable. The "Next" and "Previous" buttons aren't Submit buttons, they just increment and decrement that variable. Only the final button, which you only display when the value is set to display the last page, is a Submit. All the required fields stay required, they stop you from submitting, but you can freely navigate to every part of your form.

    Nice bonus is that it only takes up 1 User Input node on the process model and you don't have to create a bunch of loops.
Children
No Data