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.
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();
});
});
Remember to change “component_X” to the first forms ID.
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
We'd love to hear your feedback.