The problem is that these forms are generated with shortcodes, and I suspect that my created button, which leads to submission form1 and then form2 do not work because of them.
Here how it looks:
Original buttons:
<input type="submit" name="fm_form_submit" id="fm_form_submit" class="submit" value="Siųsti" onclick="return fm_submit_onclick(1)">
<input type="submit" name="fm_form_submit" id="fm_form_submit" class="submit" value="Siųsti" onclick="return fm_submit_onclick(2)">
<input type="submit" name="fm_form_submit" id="fm_form_submit" class="submit" value="Siųsti" onclick="return fm_submit_onclick(2)">
What I am doing:
<input type="submit" name="fm_form_submit" id="fm_form_submit" class="submit" value="Siųsti" onclick="DoAllThese()">
and then:
function DoAllThese() {
return fm_submit_onclick(1);
return fm_submit_onclick(2);
return fm_submit_onclick(3);
}
Any leads what can be wrond with it?
I just ran into this issue and this is part of the solution I used (this isn’t fancy, but it usually works):
Then call the
function
with a click event on the desired element. Also, I’m not sure if the topinputs
are part of your mark-up â if they are â they all share the sameId
which isn’t valid and can lead to problems.