Here is a question about interfaces with multiple submit buttons. I have an approval interface with three submit buttons - Cancel, Re-work, and Proceed.
The user can select any of the buttons to close the form and proceed with the process. However, I need a way to update a process variable based on which button the user clicked. Secondly, I would like to make the comment text field required if the user clicks the Cancel or Re-work buttons.
I thought I would add an a!save function in the buttonWidget definitions but it seems SAIL doesn't like that.
How should I do this?
Yes, you can add a save into the saveInto of the button (and this is the most sensible way to capture which button was pressed).
Your code would look something like the following:
label: cons!BUTTON_LABEL_TEXT, /* your constants here */
ri!buttonClicked /* text rule input to save into process variable */
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.