Merge pull request #739 from OpenSignLabs/staging

disable signing request email when send_email flag is false
This commit is contained in:
prafull-opensignlabs
2025-06-03 18:45:49 +00:00
parent dcbde2b661
commit 82d518b3c9
2 changed files with 10 additions and 3 deletions
@@ -1684,8 +1684,12 @@ function WidgetsValueModal(props) {
validateExpression(regexValidation);
break;
default:
regexValidation =
currWidgetsDetails?.options?.validation?.pattern || "";
// Grab the current pattern (if it exists)
const pattern = currWidgetsDetails?.options?.validation?.pattern;
// Removed `backwordSupportPattern` (/^[a-zA-Z0-9s]+$/) — it blocked spaces and special characters.
const backwordSupportPattern =
pattern && pattern === "/^[a-zA-Z0-9s]+$/" ? "" : pattern; // If it matches exactly '/^[a-zA-Z0-9s]+$/', clear it
regexValidation = backwordSupportPattern || "";
validateExpression(regexValidation);
break;
}
+4 -1
View File
@@ -865,7 +865,10 @@ function PdfRequestFiles(
const user = usermail?.Email
? usermail
: pdfDetails?.[0]?.Signers[newIndex];
if (sendmail !== "false" && sendInOrder) {
if (
sendmail !== "false" &&
sendInOrder
) {
const requestBody =
updatedDoc.updatedPdfDetails?.[0]?.RequestBody;
const requestSubject =