Adding a submit_action data in the JS so that functions can know what type of submit button was pressed.