w2form.actions

Object of event handlers for form actions.
Object, default = {}
When you define HTML template for the form, you can add buttons. If you add name attribute to the button it will be associated with the same action in the form. The HTML code below shows how to define buttons properly: Now for each button you can define an action in the form Please note that the name of the action must match the name of the button (case-sensitive).
If you want to execute an action, you can call .action() method. There is also .onAction event that gets triggered each time action is executed.

User Comments

comments powered by Disqus