Forums

Chronoforms 8 On load some Fields should be hidden

mobusag 28 Aug, 2023
Hello Everyone,
I have recently started using Joomla4 and wanted to migrate from Chronoforms 5 to 8. However, it seems that in Chronoforms 8 there's no way to set a radiobutton to hidden upon loading. I would have been able to make it visible again using a trigger.
Regards, Ciril.
Max_admin 28 Aug, 2023
there is no way to make hidden by default but you can add an Event Trigger "on load", and on listen to this event make the field hidden.

it's not the best solution but it should work until this feature is added hopefully in the next update
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mobusag 28 Aug, 2023
Hello Max
Thx for the Reply but where can i do an Trigger "on load". I tried an trigger on the first option like:
value is Empty = start
but the trigger won't work all the options are visible

Ciril
pixelhexe 04 Sep, 2023
Answer
1 Likes
I had the same question and managed it this way:

Go to the settings of your field and for "Behaviors" you have to choose 2 behaviors:

1. Events Triggers
2. Events Listener

1. you have to choose On => "Document Ready" and give it a trigger name (choosen by your own), for exampled "documentloaded".

2. On Trigger of => "documentloaded" (or however you named the "on document ready" trigger) and Action to do => "Hide"

Unfortunately I can't paste screenshots in here.
You need to login to be able to post a reply.