Page 1 of 1
Help using JavaScript to select or deselect checkbox based on database value
Posted: Thu Feb 13, 2014 5:36 am
by sam5976456
Basically, I have a database list that will generate three separate check boxes for each row in the database. I'm trying to get it so that if a value is "yes", it will automatically select the corresponding checkbox, or if the value is "no" it will deselect it. I'd also like to have it update the database with the appropriate value if a user selects/deselects a checkbox after the list generated.
Help using JavaScript to select or deselect checkbox based on database value
Posted: Thu Feb 13, 2014 6:03 am
by Igor
Hello,
Could you show us what you tried and what doesn't work?
Help using JavaScript to select or deselect checkbox based on database value
Posted: Thu Feb 13, 2014 6:12 am
by sam5976456
I haven't actually tried with any JavaScript. I just assumed it would require it... sorry :/
Help using JavaScript to select or deselect checkbox based on database value
Posted: Thu Feb 13, 2014 7:06 am
by Maryna Brodina
Hello! To set checkbox add JS in mapping. Saving values in DB - you would also need to use JS to make checkbox yes|no condition.
Help using JavaScript to select or deselect checkbox based on database value
Posted: Wed Mar 12, 2014 5:03 pm
by Omer Dekel
Hi
Can you share an example ?
Help using JavaScript to select or deselect checkbox based on database value
Posted: Wed Mar 12, 2014 8:37 pm
by Nikita