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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

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

Forms and Modal Windows

Go to End

2 Posts   1237 Views


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.




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