I need to know which button was just clicked and extract its submitbuttonnextstatusid’s value and submit the form with that value.
These are dynamically created button on the fly and I can’t change the HTML.
<input type="submit" class="ButtonSm" onclick="this.form.submitbuttonid.value='FlpZTFMaYgVeRGgOc0QOFDRhZikBbnV2H2BZ';this.form.dele.value=0;this.form.submitbuttonnextstatusid.value=25269;this.form.save.value=1;this.form.butaction.value=2;" value="Accounting" id="submitbutton">
<input type="submit" class="ButtonSm" onclick="this.form.submitbuttonid.value='F0l7LUhlZxpRGRc8KhBUHDVUZxIsHgwyH2FY';this.form.dele.value=0;this.form.submitbuttonnextstatusid.value=25264;this.form.save.value=1;this.form.butaction.value=3;" value="Awaiting Dictation" id="submitbutton_25">