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

Contact Form unique number and redirection after submit


Go to End


2 Posts   1749 Views

Avatar
stevanovich

Community Member, 63 Posts

6 January 2012 at 5:53am

Okay can anyone help. I want to setup a contact form so a member (have setup registration area) can forward and order to a company. The order needs to have a unique number and when form is filled it gets sent to both sender and receiver. After submit the user then redirects to a page with printable postage label with unique order number and member name and company address. Anyone done anything like this before using userform or custom form. Tried googling but have not found anything like what I am trying to create.

Any help would be great.

Avatar
swaiba

Forum Moderator, 1899 Posts

7 January 2012 at 11:00pm

Well using the User form module it writes to "SubmittedForm" that has an ID... is that good enough to use?
If not you could write some custom code in the "process" function of userforms\code\UserDefinedForm.php

If you wanted to build the form using code then put what processing you'd need in http://doc.silverstripe.org/sapphire/en/tutorials/3-forms#processing-the-form