@Jake - The way you've done it creates a dependency on the specific value of the button (ie. it's text). This means if for whatever reason you change the text of the button you need to change the code.
I would recommend giving the buttons the name of the action eg. name="approve" and name="reject", having two matching fields and then a third computed field that checks which contains a value to determine what was pressed.
@Jake - The way you've done it creates a dependency on the specific value of the button (ie. it's text). This means if for whatever reason you change the text of the button you need to change the code.
I would recommend giving the buttons the name of the action eg. name="approve" and name="reject", having two matching fields and then a third computed field that checks which contains a value to determine what was pressed.