Event Trigger for On Click

Trigger a click event to show or hide form fields in ChronoForms 8.

Overview

CF 8 lacks the built-in 'click' event trigger available in CF 7 for toggling field groups.
Create a custom JavaScript function using the Javascript action and call it by adding an onclick attribute to the button's HTML.

Answered
ChronoForms v8
kg 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.

kg 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 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.
Post a Reply