Conditionally Hide Fields based on radio button choice

Conditionally hide form fields based on a radio button selection in ChronoForms.

Overview

The issue occurs because fields are not automatically hidden when a user selects a specific radio button option, such as "No" for delivery.
Set up a trigger on the radio button to fire when "No" is selected and configure listeners on the target fields to hide them. Also, add a page load trigger to hide the fields by default if needed.

Answered
ChronoForms v8
mi micah_w 09 Aug, 2024

The title says it all, I need to hide some fields when the user says "No" to delivery but I'm not sure how on CF 8.  I suspect event triggers have something to do with this ability, but I can't find a demo showing this.  Please advise.

Max_admin Max_admin 11 Aug, 2024
Answer
1 Likes

Hi Micah

Yes, you need to setup a listener in your form fields to show them on specific trigger, and setup a trigger to fire when the "No" is selected

You will also need a trigger on page load to hide the fields to be shown, if those fields should be hidden by default

I will try to prepare tutorial for this feature in the next few days

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mi micah_w 13 Aug, 2024

Thanks Max, I appreciate the work you do, great software!

Ro Ron 05 Sep, 2024

Hello Max,

Could you find time to make a tutorial for show or hide form fields in triggers?  Please direct me to that tutorial if it is made.

Thanks

ron

This topic is locked and no more replies can be posted.