HI Bob
Thank's for replay.
But the FAQ is for CF4. I'm working in CF6.
It's the same ?
Luca
Hi Luca,
Yes, I think so.
Bob
Ok.
Tomorrow i try and i'll give you a feedback
Luca
Hi Luca,
When the dropdown value is changed, its value is passed to the reload event, so in the text field "Label" box you can use this:
{data:dropdown_field_name}
This will bring you the value of the selected option, but if you want the text then you need a "Switch" function (not event switcher), use it before the "custom code", set the data provider to the shortcode above, and set the values to the same dropdown options, but you will have to replace the "=" with ":"
Now use this in the "Label" field of the text field:
{var:name_of_the_switch}
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Luca,
You should place it in the "Value" setting then!🙂
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
HI Max..
I suppose this is the right way.. and I try several time..
But it does not work.
Putting the {var:name_of_the_switch} in the field_text value options does not set the value.
The text field remain empty
Hi Luca,
Please check the FAQ I linked to earlier in this thread.
Bob
Hi Luca,
So the {var:} shortcode does not work in the "Value" but works in the "Label" ?
I could not test this, but it may be because of the posted form data to the reload event, please try to add this code in the "Extra attributes" box of the "Text field":
data-ghost:1
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.