Jump to:

1999 Posts in 1408 Topics by 613 members

Form Questions

SilverStripe Forums » Form Questions » Need help with form

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

Page: 1
Go to End
Author Topic: 470 Views
  • Webdoc
    Avatar
    Community Member
    332 Posts

    Need help with form Link to this post

    I need to make Non profit company that helps jobseekers a webform where people can post their cv in form all other is simple with the form using userdefined forms but i dont know how to add fields for education because it needs more than one field sometimes so i wanted that the people can add extra field if needed to the education part. So that if they have studied more than one school they click add more button and then it adds new fields for one more school.

    Someone have any idea how to do it

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Need help with form Link to this post

    I'm not sure how to get the userforms to support the use of dynamically created fields. Thinking out loud - something like a special 'DynamicTextFieldSet' formfield that can display multiple textfields and write the values to DB as a cs list?

    But suppose you define a couple of extra textfields in advance and then use javascript: hide all but one, add the 'more' button and show the extra fields one by one? How many education fields would one single subscriber need?

    Martine

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: Need help with form Link to this post

    How to make DynamicTextFieldSet?

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Need help with form Link to this post

    Wow... Probably extend EditableFormField or maybe EditableText(Area)Field... But it would probably be somewhat complex, not something I can write a recipe for just likeb that..

    If I were you I would try the other option first, as it would probably be far easier...

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