Skip to content

πŸ”₯ The free & Open Source DocuSign alternative

Merge pull request #739 from OpenSignLabs/staging

prafull-opensignlabs82d518b3c9f6
diff --git a/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx b/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx
index 4dfe08c60..44d78d2d7 100644
--- a/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx
+++ b/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx
@@ -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;
}
diff --git a/apps/OpenSign/src/pages/PdfRequestFiles.jsx b/apps/OpenSign/src/pages/PdfRequestFiles.jsx
index 54f6a515c..f6b09d32e 100644
--- a/apps/OpenSign/src/pages/PdfRequestFiles.jsx
+++ b/apps/OpenSign/src/pages/PdfRequestFiles.jsx
@@ -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 =