Cancel button on Start From not saving value

I have a Cancel and Submit button on a Start Form and it is not saving the value to the process variable.  Below is the SAIL code and the expression in the Start Form.  Am I missing something?  Thanks.

  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidgetSubmit(
        label: "Submit",
        style: "PRIMARY",
        value: "No",
        saveInto: ri!buttonValue
      )
    },
    secondaryButtons: {
      a!buttonWidgetSubmit(
        label: "Cancel",
        style: "DESTRUCTIVE",
        confirmMessage: "Are you sure?",
        value: "Yes",
        saveInto: ri!buttonValue,
        skipValidation: true
      )
    }
  )

=rule!startFormInterfaceTest(buttonValue:pv!cancel,submittedForCustomer:pv!submittedForCustomer,customer:pv!customer,projectTitle:pv!projectTitle,projectDescription:pv!commentsRequestor)

  Discussion posts and replies are publicly visible

Parents
  • Remove the parameters for the form and use directly saveInto in pv! variable.

    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidgetSubmit(
    label: "Submit",
    style: "PRIMARY",
    value: "No",
    saveInto: pv!buttonValue
    )
    },
    secondaryButtons: {
    a!buttonWidgetSubmit(
    label: "Cancel",
    style: "DESTRUCTIVE",
    confirmMessage: "Are you sure?",
    value: "Yes",
    saveInto: pv!buttonValue,
    skipValidation: true
    )
    }
    )
Reply
  • Remove the parameters for the form and use directly saveInto in pv! variable.

    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidgetSubmit(
    label: "Submit",
    style: "PRIMARY",
    value: "No",
    saveInto: pv!buttonValue
    )
    },
    secondaryButtons: {
    a!buttonWidgetSubmit(
    label: "Cancel",
    style: "DESTRUCTIVE",
    confirmMessage: "Are you sure?",
    value: "Yes",
    saveInto: pv!buttonValue,
    skipValidation: true
    )
    }
    )
Children