Skip to main content
kavyam0002
January 4, 2022
Solved

SkipValidation

  • January 4, 2022
  • 1 reply
  • 0 views

Hi

I want to skipValidation for a button- buttonWidget() inside this function how can i include skipValidation parameter? 

Thanks 

    Best answer by chandhinir0001

    Hi Kavya,

    You can use validate parameter as false to skip the validations in buttonwidget. Please find the sample code

    a!buttonWidget(
      label: "CLOSE",
      style: "SECONDARY",
      size: "SMALL",
      value: "close",
      saveInto: {
        ri!buttonAction
      },
      confirmHeader: "Close",
      confirmMessage: "Changes will be lost. Are you sure to close the form?",
      submit: true,
      validate: false()
    )

    1 reply

    January 4, 2022

    Hi Kavya,

    You can use validate parameter as false to skip the validations in buttonwidget. Please find the sample code

    a!buttonWidget(
      label: "CLOSE",
      style: "SECONDARY",
      size: "SMALL",
      value: "close",
      saveInto: {
        ri!buttonAction
      },
      confirmHeader: "Close",
      confirmMessage: "Changes will be lost. Are you sure to close the form?",
      submit: true,
      validate: false()
    )