1
0
-1

I am trying to send a scripted Form.submit() to record the current Form as "Cancelled" / "Abandonned".

Form.submit("cancel", false).then(function(response){
console.log("cancelled");
}, function(err) {
console.log("error on cancelling");;
});

The Page will then open the client's site.

window.open(url, "_self");

I get back a DDS Error "Invalid Submission Type: 'cancel';

What is the correct value to set as the SubmissionType to get Transact to mark the Form Session as Cancelled?

In the Template I can see a Submit Type of button, but I don't have access to that in the Form's Palette of Components to put on on the Dialog that brokers this.

We do not want to leave the Form active in Transact, as the customer has chosen an alternate path to complete the task at hand.

Thanks,

Trevor

    CommentAdd your comment...

    2 answers

    1.  
      4
      3
      2

      Form.submit("Abandoned")

      You can see this used in the Click script of Maguire Default's Cancel / Exit button, which is also available as Cancel / Exit in the palette in the template.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Thanks!

          CommentAdd your comment...