Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » [SS 2.4] How to create a tutorial poll form with multiple values?

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

Page: 1
Go to End
Author Topic: 425 Views
  • Imploosio
    Avatar
    Community Member
    5 Posts

    [SS 2.4] How to create a tutorial poll form with multiple values? Link to this post

    Hi,

    I'm trying to re-create a poll similar to what is described in this tutorial: http://doc.silverstripe.org/framework/en/2.4/tutorials/3-forms

    However, I need to use checkboxes instead of radio buttons to allow multiple answers (CheckboxSetField instead of OptionsetField). I'm a little stumped on what would be the best way to save and process the values, I've tried to change the submission model into has_many or many_many in hopes of eliminating the need to save data into the database in comma separated values.

    What is the best way to do this? To save the data into a database in correct format and spit it out as a neat little bar graph just like in the original tutorial? Any help is highly appreciated.

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