1
0
-1

Good Morning.
Is there a way to add a print button to the online form where the user could print the PDF output of the form at any stage before submission?
Thanks.
Aman

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      We did something similar, we basically had a button , and wrote a click rule

      var url = Form.data.SFMData.SystemProfile.FormDataServiceURL;
      if (url) {
      url += "?sfmRequestKey=";
      var requestKey = Form.data.SFMData.SystemProfile.RequestLogKey;
      if (requestKey) {
      url += requestKey;
      url += "&sfmOperationName=renderReceipt";
      if (item.properties.renderMode=="file") {
      url += "&renderMode=file";
      }
      Form.submit('Saved', false, true, false, false, false)
      .then(function() {
      window.open(url,"_blank");
      });
      }

      1. Aman Kohli

        Thanks Mike. I will try that.

        Can you help me with one more thing. Where can i find API documentation to understand methods,parameters etc as for me i don't know what SFMData, SystemProfile, RequestLogKey means or what will this is going to get. What all methods are there in Form apart from the ones we see in Maestro API methods.

        Some places like a continue button, on its click event script is Form.$Pages.move(true). I would like to know the list which we can use for a Form like $Pages etc.

        I hope i made sense. Please let me know if its unclear.

        Thanks & Regards,

        Aman

      2. Mike Chen

        I don't know if there are documentations with regards to that personally, maybe people from the product team can point you to the right location.

      CommentAdd your comment...