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.

Archive /

Our old forums are still available as a read-only archive.

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

Forms


Go to End


1429 Views

Avatar
Psykick

Community Member, 5 Posts

2 May 2008 at 4:21pm

Edited: 07/05/2008 12:28pm

Hi Guys,

Basically what I am attempting to do is have two forms on a single page each with their own separate action. The overall idea is making a modification to the existing ecommerce v0.5.2-rc1 CheckoutPage/OrderForm so that when a member that has not logged in goes to checkout, an additional form would display allowing a member to login using their email address and password, on successful login it would redirect them back to the checkout page and would populate the order form with their account details. The standard order form would be displayed regardless of whether the member has logged in or not. The only variable in the equation that would change is whether or not the order form details would be automatically populated or not.

Ideally all I need to know is how do I go about having two forms on a single page. What do I need in order to achieve this? CompositeField? Can someone give an example?