Triggering submit / update buttons with javascript.

By: Justin Taylor | Asked: 02/23/2023
ForumsCategory: Code HelpTriggering submit / update buttons with javascript.
Justin Taylor asked 2 years ago

Is it possible to trigger the SUBMIT / UPDATE form buttons using javascript? Usecase:  We want to create our own previous / next buttons that submit a form and redirect to a page. Why not use the customize html option in Formidable: 1)We have looked at the documentation and it is easy to add additional buttons and get some sort of layout that we want using those customization features.  The problem is that the labels for SUBMIT and UPDATE are handled by the buttons section under settings and having two submit buttons labeled next / previous doesn't seem plausible. So, largely, it seems easier to just hide  SUBMIT / UPDATE buttons as their functionality shouldn't be duplicated and create our own buttons and layouts using html and just triggering the action. 2) The latest version of Formidable has a number of issues with notifications resulting in a url redirect not always working and as we are doing a simple url redirect we may as well just handle that our selves. Is this possible?  Are there any code snippets available as examples? Thanks.  

// EDIT: The submit button can be triggered using jquery.  Closing this thread.

1 Answers
Victor Font answered 2 years ago
Here's the best documentation for jQuery.submit(): https://api.jquery.com/submit/

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right