sam5976456
Posts: 0
Joined: Fri Jun 21, 2013 9:37 pm

Help using JavaScript to select or deselect checkbox based on database value

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Help using JavaScript to select or deselect checkbox based on database value

Hello,

Could you show us what you tried and what doesn't work?

sam5976456
Posts: 0
Joined: Fri Jun 21, 2013 9:37 pm

Help using JavaScript to select or deselect checkbox based on database value

I haven't actually tried with any JavaScript. I just assumed it would require it... sorry :/

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Help using JavaScript to select or deselect checkbox based on database value

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.

Return to “Issues”