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.
Hi SilverStripe Community,
I want to create a contact page which can display different forms. On the right are <button/>-TAGs to switch between the forms.
For example my contact.ss looks like this and my page type has got the functions $FormOne and $FormTwo to return a form:
After I click on the 2nd button $FormOne should be replaced by $FormTwo.
Looking at the options that I can think of:
2. if the button is pressed, reload the page with the desired form (?form=myform or implement a action/rule?)
Oh... and the simplest: just have separate pages, each with their own form, replace the custom buttons by a submenu... :-)