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.

Form Questions /

Contact Form unique number and redirection after submit


Reply


2 Posts   769 Views

Avatar
stevanovich

Community Member, 60 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, 1808 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