22407 Posts in 6903 Topics by 2749 members
|Go to End|
17 February 2012 at 4:50am
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.
18 February 2012 at 12:21am Last edited: 18 February 2012 12:22am
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...
|Go to Top|