diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.js index b20f6ea2f..15d911251 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderType.js +++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js @@ -40,7 +40,7 @@ function PlaceholderType(props) { const validateExpression = (regexValidation) => { if (textValue) { let regexObject = regexValidation; - if (props.pos?.options.validation.type === "regex") { + if (props.pos?.options?.validation?.type === "regex") { regexObject = RegexParser(regexValidation); } // new RegExp(regexValidation); @@ -89,11 +89,11 @@ function PlaceholderType(props) { case "number": setValidatePlaceholder("12345"); break; - case textInputWidget: - setValidatePlaceholder("enter text"); + case "text": + setValidatePlaceholder("please enter text"); break; default: - setValidatePlaceholder("enter text"); + setValidatePlaceholder("please enter value"); } } @@ -407,7 +407,7 @@ function PlaceholderType(props) { (props.isNeedSign && props.data?.signerObjId === props.signerObjId) ? (