How would I know which submit button in JavaScript was clicked from rendered HTML:

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">

These are dynamically created button on the fly and I can’t change the HTML.

Yes you can :slight_smile: Give the inputs a name attribute and that will get passed through in the request.