1
0
-1

Hi all,

In Maestro we can turn on the "Auto-send Confirmation Emails" to enable emails for save and submit. 

Is there a way that I can only turn on the auto email for Save but not Submit?

Many thanks,

Kiki

 

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      You can edit the Form.submit call in the submit button click rule.

      The Form.submit method has the following parameters:

      The sendEmail parameter is what you want to set to false.

      Change the code in the submit button click rule to the following:

      Form.submit(item.properties.submissionMethod, item.properties.legacyMethod, false, false, false).then(function(response){
          Form.fireRule("onSuccess", item, data, response);
      }, function(err) {
          Form.fireRule("onFailure", item, data, err);
      });
        CommentAdd your comment...