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.

Form Questions /

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

Forms and Modal Windows


Go to End


2 Posts   1606 Views

Avatar
EML

Community Member, 2 Posts

12 June 2012 at 2:13am

Does anyone have any example code for creating, validating and submitting a form via a modal window? I can get a modal window (via either colorbox, fancybox or thickbox). And I can create, validate, and submit a form... I just can't seem to combine the two things!

I'm basically looking to add an 'Email More Info' button to a product page.

Cheers,

Graeme

Avatar
swaiba

Forum Moderator, 1899 Posts

12 June 2012 at 2:58am

I would advise that you stick to JavaScript only validation and this will provide the validation without needing submit the form to a PHP process