Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » UserForms - extending it a bit

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 865 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    UserForms - extending it a bit
    Link to this post

    I got a few questions about the UserForms module.

    -> How do I (automatically) transfer all form request in a table, which I can manage through ModelAdmin in the CMS?
    -> I want adres recognition by zipcode, based on a database which contains all streets & places. How do i enter these dynamic fields into the Form?
    -> Each form entry must generate a unique number which will get stored in the db table, how do i do that?

    Hope to hear from you guys.
    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: UserForms - extending it a bit
    Link to this post

    1) You could setup a modeladmin interface around the 'SubmittedForm' dataobject. The SubmittedForm object has each field

    2) Each form already gets a unique ID (for the primary key) as like every SS dataobject so you could use that.

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: UserForms - extending it a bit
    Link to this post

    thx willr i will check this out in a few days, you will hear from me!

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: UserForms - extending it a bit
    Link to this post

    Hello (Willr)

    Im back to extending the UserForm!
    I want two emails to be send, one to the admin.. thats easy, just fill in email receipient.

    The other one should go to the customer but the text in the email is dynamic, so that makes it more difficult.

    A script needs to be executed after 'send'. This script determines the nearest shops.. it will result in 2 addresses that will be send to the customer by email. I already have this script, but how do i run/include this script in the email that should be send.

    The idea is that a discount coupon gets send to the email of the customer, with the nearest address on it.

    Thx for your help!

    865 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.