V5 Cancel button

tshirley 04 Jan, 2015
Hello,

In V4 there was a simple config checkbox to create a Cancel and a Reset button on the "Submit" button field type. Tis was a great feature, very simple to use.

There does not seem to be any equivalent in V5.

Does anyone know how to do this in V5? In almost every way V5 is an improvement, and I can't believe that it isn't there... so probably my fault.

Tim
GreyHead 05 Jan, 2015
Hi Tim,

You can use two (or more) buttons in a Multi Field element to do this - seems to work OK.

Bob
tshirley 05 Jan, 2015
Thanks - that would be fine.

However I am unsure how to configure the other button types.

How do I make a button of type "button" trigger an event? There doesn't seem to be any control to do this. Submit goes to On Submit automatically, what happens with the others?
GreyHead 06 Jan, 2015
Hi Tim,

I use JavaScript to add onClick events as needed.

Bob
Max_admin 07 Jan, 2015
Hi,

You can also use a link and add this class to it "btn", that would make it look like a button.

Or you can use a normal submit button in a multi field as Bob suggested, but give your cancel button the name "event" and set its value to something like "Cancel", then add a new event to your form and name it "Cancel" and do anything you like there.

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.