This topic is locked
[SOLVED]

Hide a section depending on checkbox value

2/29/2024 12:25:14 PM
PHPRunner General questions
Y
Yoann author

Hello,

I have a form were people enter their first name and last name and they also have a checkbox if they are under 18yo. I have also 2 other fields (Legal gardian first & last name). I put those 2 last fields in a section on my form. I would like this section appears only if this checkbox has been checked.

I found a topic about hiding the fields directly and it's working but I would like to hide the section and not only the fields.

Best regards

admin 2/29/2024

Check this article, it explains how you can expand or collapse a section:
https://xlinesoft.com/phprunner/docs/about_tabs_sections_api.htm

If you need to hide it completely, you can use jQuery's hide() method:
https://api.jquery.com/hide/

Y
Yoann author 2/29/2024

thanks, I used an event to hide them and it's working perfectly. Thanks