Jump to:

1975 Posts in 1305 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » Contact Form unique number and redirection after submit

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 595 Views
  • stevanovich
    Avatar
    Community Member
    59 Posts

    Contact Form unique number and redirection after submit Link to this post

    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.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Contact Form unique number and redirection after submit Link to this post

    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

    595 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.