Forums

Conditional field - input problem

fkb 17 Feb, 2017
Hey guys!

I have the following conditional field problem:

Radio box with 2 options: when clicking on option 1 (yes), a div element will appear. (I filled in the fields inside the div)
When clicking on option 2 (no), the div element will disappear.

My problem: after submitting the form (setting option 2 (no)), the input of option 1 still appear in the admin mail & client mail.
Any solution for this problem? Thanks
Max_admin 17 Feb, 2017
Hi fkb,

The solution is to hide and disable the fields in the div.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
fkb 20 Feb, 2017
Hello
I've modified DIV to Hide and to Disable. 'Hide and Disable' at the same time seems not possibble.
Unfortunately, none of them are working.

If One choose 'Yes' and then decides to choose 'No', then all conditional fields related to 'Yes' stay posted.
One sees 'No', but fields related to "yes" ars still shown.

Perhaps any other ideas to solve ?
Grtz

Frank
Max_admin 21 Feb, 2017
Hi Frank,

The fields themselves have to be disabled, not the container div, please try that, if it does not work then a custom code will be needed to show/hide the div and disable/enable the fields.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
fkb 21 Feb, 2017
I am afraid I can't follow you Max.
Please see attachment.
Nbr 74: the condition
Nbr 75: the DIV
Nbrs 76+77+78: these fields should disappear when choosen 'nee/no' in nbr 74.

Could you guide me, which nbrs to Edit and which Parameters to change into 'disabled'.
Many txs
Frank
Max_admin 21 Feb, 2017
Hi Frank,

In "74" settings you can add multiple events to disable the fields 77 and 78, you may need custom code for 76 because its a custom element. (if there is a field inside)

You may do the same under the "Events" section in the designer.

Alternatively you can do it using custom code in a "Load javascript" action, let me know if you need help with that.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.