This topic is locked

using check boxes to show/ hide fields

8/21/2019 4:58:27 PM
PHPRunner General questions
L
lcslouis author

what would be the correct way in using check boxes to show or hide fields based if they are checked or not?
I have a group of check boxes that are loaded from a DB lookup. Based on if someone checks a box I would want to have some additional fields show that will be a combination of informational and required input.
Multiple check boxes can be selected so I would need to be able to handle when more than 1 box is selected.

Sergey Kornilov admin 8/22/2019

Check this article for inspiration:

https://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm
It explains how to do so with dropdown boxes but the idea is the same.