Page 1 of 1

How to register which checkboxes were selected/not selected to the DB?

Posted: Wed Nov 18, 2015 4:10 pm
by Logan Wells

Let's say we have some number of checkboxes, and the user is supposed to select some based on what they did, such as below:

What did you do today
[CHECKBOX ONE] Skateboarding
[CHECKBOX TWO] Walking
[CHECKBOX THREE] Running
(Button)

Of course we would want to see which checkboxes were selected and which were not selected (so in the DB it would say something like 'X was selected, Y was not')

How would you do this, it seems like it would be rather basic.

Thanks so much,
Logan


How to register which checkboxes were selected/not selected to the DB?

Posted: Wed Nov 18, 2015 6:23 pm
by Howard Chang

I am asking a similar question here.

https://getsatisfaction.com/apperyio/...


How to register which checkboxes were selected/not selected to the DB?

Posted: Wed Nov 18, 2015 7:07 pm
by Emmz

If your radiogroup is named: "checkboxgroup"
Add Run Javascript on "Value Changed" Event on "checkboxgroup"
code
//get checked radio VALUE
var radiochecked = $('input[name=checkboxgroup]:checked').val();
//OR
//get checked radio TEXT
var radiochecked = $('input[name=checkboxgroup]:checked').closest("div").find("label").text().trim();
/code


How to register which checkboxes were selected/not selected to the DB?

Posted: Wed Nov 18, 2015 9:12 pm
by Logan Wells

@Howard
It is a popular question, it is weird how they do not have a tutorial for it.

@Neil B
Would I use this with any type of service?
Thanks