Trigger Submit Button of the Other Form
The following is a solution to submit one form at the same time as another. If you hit the submit button of form A, form B will also be submitted.
- Not yet re-checked
- Classic builder
Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.
The following is a solution to submit one form at the same time as another. If you hit the submit button of form A, form B will also be submitted.
Step 1
You’ll need to add a CSS class for the second form (the one you want to submit automatically).
Step 2
Add the following code to the JavaScript tab of your page.
TB.render('component_X',function(data){
data.ele.find('.af-form-submit').on('click',function(){
$($('.form-2 .af-form-submit')[0]).click();
});
});
Step 3
To get the form ID, hover over the info icon symbol at the top of the component.
Original Community Post:
Trigger submit button of the other form - Community Discussions / How Do I - Tadabase Community
Was this page helpful?
Something wrong or missing on this page? Tell us.