We are using Appian 16.2 and I noticed by creating a small test case that section validations run before any buttons are pressed regardless of whether it has an associated validation group. The test case I am using is copied below. Am I doing something wrong here or is there some other way to make a validation only trigger when a certain button is pressed?
a!formLayout( label: "Test", firstColumnContents: { a!sectionLayout( label: "", firstColumnContents: {}, validations: "Test", validationGroup: "SUBMIT" ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidgetSubmit( label: "Save", value: "save", saveInto: ri!button_value, validationGroup: "SUBMIT" ) } ))
Discussion posts and replies are publicly visible
When you're typing out the validations parameter in SAIL, it doesn't say this but you should use a!validationMessage() for the validations parameter if you want to control when the validation error shows ("REFRESH" being the default if not provided).