a!buttonWidget and Confirmation Message

Certified Senior Developer

a!buttonWidget(
                label: "SUBMIT",
                submit: true,
                style: "PRIMARY",
                loadingIndicator: true(),
                showWhen: local!activeStep = length(local!steps),
                confirmMessage: "Do you want to continue and submit data?",
                confirmButtonLabel: "SUBMIT",
                cancelButtonLabel: "CANCEL"
              ),

Hi All,

I have a form for the user to add some required/ optional fields, right now my confirmation message in the submit button shows before it validates the required fields. So it shows confirmation message, and then  shows the red field validations- instead I would like to see those validations immediately once I click the first submit, instead of after the confirmation message. 

Is there a way to show the confirmation message after the button itself has validated that all required fields are filled in the form? or show confirmation only when all required fields are filled in?

thanks in advance!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data