ButtonWidget & ButtonWidgetSubmit

Hi,

In SAIL form, may I know if the button is pressed and the form failed the validations, will the data that defined in the saveInto of the button will still be able to be saved?

For instance, I have 2 different validations on a grid, depending on the button that the user pressed, eg: Reject & Submit, the grid will be validated based on the variable that store the button.

example:
gridField(
...
validations: { if(ri!buttonAction_txt = "Reject", "errorMsg1", if(ri!buttonAction_txt = "Submit", "errorMsg2", ""))
...
),
...
buttons: a!buttonLayout(
primaryButtons: {
a!buttonWidget(
...
value: "Reject",
submit: true,
saveInto: ri!buttonAction_txt
)

OriginalPostID-254363

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data