Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Userforms - Why can I not assign ID's/Names to the fields?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 555 Views
  • Garrett
    Avatar
    Community Member
    245 Posts

    Userforms - Why can I not assign ID's/Names to the fields? Link to this post

    Using Silverstripe for forms has always been a problem for my development (read: I haven't been able to use them) because of the seemingly random form field names which are generated in the HTML by the Userforms module. How can I ever expect to hook my forms up to other systems (for example, SalesForce) if I can't control the names/IDs of the fields?

    I need users to be able to create their own forms for marketing and for my processing of these forms to be a pre-written XML parser. I can't create an XML document (to be parsed at a given URL by another system) and then put these results in that database if I have no idea what the fields are going to be called. What do other people do in this situation?

    //Garrett

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Userforms - Why can I not assign ID's/Names to the fields? Link to this post

    You could extend your UDF to have a special field for ID - See this patch for an example of adding a field to each form field http://silverstripe.org/all-other-modules/show/15539#post298071.

    The reason for the automatic ID's is that UDF is designed for content editors, allowing total flexibility makes the backend layout really complex really quickly so I'm trying to keep the core UDF nice and simply for most users. Hope that link guides in the right direction though.

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