Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Disabling MultiFormStep validation on "Back" submit


Go to End


753 Views

Avatar
muskie9

Community Member, 24 Posts

15 December 2014 at 3:17pm

Is there a way to disable validation for a MultiFormStep if the user uses the Back button?

I have a scenario where a field on a particular step needs to be unique. If the user tries to enter a value that already exists in the database they need to go to the previous step and select that existing value. Currently the unique field still requires a value to use the Back button as it's still submitting the form.