Add event to submit button

thebatik 12 Oct, 2017
Hello.
How I can add event like "onclick" to submit button?
Example, onclick="yaCounterXXXXXX.reachGoal('ORDER'); return true;"

I'll want to see the code
<button onclick="yaCounterXXXXXX.reachGoal('ORDER'); return true;" data-events="[]" class="ui button orange" type="submit" name="button6" id="button6" value="">GET GIFT</button>
Max_admin 13 Oct, 2017
In the "Extra attributes" setting of the field!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thebatik 13 Oct, 2017
Ok, I try insert code in the "Extra attributes".
But on the front page the code doubled inserted. (see second attached file)
Max_admin 13 Oct, 2017
The syntax should be:
onclick:call to function here


Best regards
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.

VPS & Email Hosting 20% discount
hostinger