Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » UserForms issue when creating my own form fields

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 690 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    UserForms issue when creating my own form fields Link to this post

    Hi.

    I've been using the UserForms module to allow my client to create their own form fields on their site.
    In order for it to work properly I've had to create a couple of custom form fields for them.

    However, my custom form fields are not playing nice with the validation in the sense that they get another id than what the validator expects. I don't know how or why they get the id that they do, I've tried digging for it but I haven't been able to find it.

    The id on the form field container becomes CostEditableCostCheckbox with a number appended. The validator expects the id to be EditableCostCheckbox with the number appended. I have no idea why it does like this.

    I have attached the relevant class. I am running SilverStripe 2.3.2.

    Attached Files
    690 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.