Clear Value on radiobox

Informatique 7d ago

Hello,

I am trying to use Clear Value via an advanced trigger.

If I use this trigger on a “text” field, it works correctly.

But if I use it on a radiobox field, the value is not cleared.

For example, I have two pages: On the first page, I have a radiobox box1. The possible options are YES or NO.If the user chooses YES, a second radio button box2 is displayed. The user then chooses an option from CLAS / PACK / CENT.When he validate this page, I have my data positioned on page 2: box1=YESbox2=CLASNow I go back to page 1 and choose NO and validate.By choosing “NO,” I trigger Clear Value on box2.Now, on page 2, I have the data: box1=NObox2=CLAS when I should have box2="empty."How can I “empty” this radiobox since Clear Value is not working?

Max_admin 6d ago

Try to add a hidden field with the same name of the Radio just before the Radio, now if you choose no options in the Radio, the hidden field value will be passed as the radio value and it will be an empty string and override the stored session value.

Please confirm if it works or not

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.