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

User Forms: Add an E-mail Confirm field?


Go to End


3 Posts   1717 Views

Avatar
purplespider

Community Member, 89 Posts

28 September 2010 at 11:17pm

I have a form and would like to add a second e-mail field, where users have to reenter their e-mail address, and the form will not validate unless both e-mail fields match.

Is this possible to achieve in the User Forms module, or shall I need to develop the form from scratch to implement this?

Many Thanks
James

Avatar
purplespider

Community Member, 89 Posts

28 September 2010 at 11:57pm

So after adding a second E-mail field, I just need to know how to add a custom validation rule that will compare the 2 fields?

Avatar
Willr

Forum Moderator, 5523 Posts

29 September 2010 at 6:08pm

Hm I'm not sure you would be able to set validation of 1 field must equal another. You may have to implement your own EditableConfirmEmail field and use that in the form. No plans to provide functionality along those lines in the module any time soon.