How to get an event from a button the easiest way (CF V5)

peter.wirth 18 Mar, 2014
I try to get an event from a button (Submit Button Type=Button) the easiest way on a page?

Up to now I use the event from page2 (multipage) but the form should be at one page, so I need an event from the user.
The user has to fill a text box with an ID to get after click the button one record from the database.

How to do?

Thank you in advance

Peter
Max_admin 30 Mar, 2014
Hi Peter,

I'm not sure of this, you want to do an AJAX call on a button click ?

If yes then some AJAX code and a new form event to do the database call and return the data will be needed.

You may also keep your form as a multi page and enable the "AJAX submit" feature inside the "HTML" action, that would submit the form and return the data on the same page.

Regards,
Max
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.