Forums

Event Trigger for On Click

kgriffin 29 Jul, 2024

Hi-

I need to be able to show/remove a group of fields when buttons are clicked, and make sure validation is disregarded when the fields are hidden. I can't user the Repeater, because I need to be able to limit the number of instances of the group of fields to three. Chronoforms 7 had the event trigger "click". That does not seem to be available in Chronoforms 8. What are the steps to trigger an event on click for a button? 

Thanks.

kgriffin 30 Jul, 2024
Answer

OKay, I have figured out that I can create a javascript function using the Javascript action and then call it by adding an onclick attribute in the HTML attributes. How do I use short codes in the call to create the url for the file to download?

Max_admin 11 Aug, 2024

How do I use short codes in the call to create the url for the file to download?

did you try writing the shortcode in the button call function ?

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.