diff --git a/apps/OpenSign/src/routes/Form.js b/apps/OpenSign/src/routes/Form.js index 1069753e6..032454901 100644 --- a/apps/OpenSign/src/routes/Form.js +++ b/apps/OpenSign/src/routes/Form.js @@ -34,7 +34,8 @@ const Forms = (props) => { Name: "", Description: "", Note: "Please review and sign this document", - TimeToCompleteDays: 15 + TimeToCompleteDays: 15, + SendinOrder: "false" }); const [fileupload, setFileUpload] = useState([]); const [fileload, setfileload] = useState(false); @@ -161,6 +162,8 @@ const Forms = (props) => { "TimeToCompleteDays", parseInt(formData?.TimeToCompleteDays) ); + const isChecked = formData.SendinOrder === "true" ? true : false; + object.set("SendinOrder", isChecked); } object.set("URL", fileupload); object.set("CreatedBy", Parse.User.createWithoutData(currentUser.id)); @@ -365,6 +368,32 @@ const Forms = (props) => { /> )} + {props.title === "Request Signature" && ( +
+ +
+ +
Yes
+
+
+ +
No
+
+
+ )}

This is an automated email from OpenSign™. For any queries regarding this email, please contact the sender " + + sender + + " directly.If you think this email is inappropriate or spam, you may file a complaint with OpenSign™ here.

" + }; + sendMail = await axios.post(url, params, { + headers: headers + }); + } catch (error) { + console.log("error", error); + } + } + } + } else { + setIsAlert({ + isShow: true, + alertMessage: "something went wrong" + }); + } + } catch (err) { setIsAlert({ isShow: true, alertMessage: "something went wrong" }); } - } catch (err) { - setIsAlert({ - isShow: true, - alertMessage: "something went wrong" - }); } - } - setIsSignPad(false); - // } + setIsSignPad(false); + // } + } else { + setIsAlert({ + isShow: true, + alertMessage: "something went wrong" + }); + } } else { setIsAlert({ isShow: true, - alertMessage: "something went wrong" + alertMessage: + "Please wait for your turn to sign this document, as it has been set up by the creator to be signed in a specific order; you'll be notified when it's your turn." }); } } diff --git a/microfrontends/SignDocuments/src/Component/placeHolderSign.js b/microfrontends/SignDocuments/src/Component/placeHolderSign.js index 5dd79e66b..ec16c84ae 100644 --- a/microfrontends/SignDocuments/src/Component/placeHolderSign.js +++ b/microfrontends/SignDocuments/src/Component/placeHolderSign.js @@ -661,8 +661,11 @@ function PlaceHolderSign() { year: "numeric" }); let sender = pdfDetails?.[0].ExtUserPtr.Email; - const signerMail = signersdata; + let signerMail = signersdata.slice(); + if (pdfDetails?.[0]?.SendinOrder && pdfDetails?.[0]?.SendinOrder === true) { + signerMail.splice(1); + } for (let i = 0; i < signerMail.length; i++) { try { const imgPng = @@ -691,7 +694,6 @@ function PlaceHolderSign() { recipient: signerMail[i].Email, subject: `${pdfDetails?.[0].ExtUserPtr.Name} has requested you to sign ${pdfDetails?.[0].Name}`, from: sender, - html: "