Merge pull request #1785 from OpenSignLabs/updates-15425322075

handle crashing pattern for text input widgets
This commit is contained in:
prafull-opensignlabs
2025-06-04 00:17:30 +05:30
committed by GitHub
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 =