Code for custom buttons

Chad created the topic: Code for custom buttons

Can you provide a sample of how I can add a custom button and add actions to it?
I see the field for onClick functions but I don't understand what goes there. I've tried a few different things at this point.


Thanks,
Chad

#83975

Please Log in or Create an account to join the conversation.


Agapi G. replied the topic: Code for custom buttons

Hello Chad!

Thank you for posting your question!

Here's how you can use custom buttons to modify form action. Please add your code to Form Options > Javascript tab. Start with defining new function as follows:

function custom() {
	// custom code.
}
To complete form submission after the code executes, you need to call check_requiredX(); function in the end of the script, where X is the ID of your form:
function validate() {
	// validation code.
	check_requiredX();
}
Afterwards please create a custom button, calling custom(); in its OnClick function option. The script will run properly and complete validation as predicted.
Thanks Have a great day!


Kind regards,
Agapi G.
Web-Dorado team
#84045

Please Log in or Create an account to join the conversation.


Time to create page: 0.154 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us