Skip to content

Commit

Permalink
Merge pull request #624 from OpenSignLabs/fix_issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-opensignlabs authored Apr 21, 2024
2 parents 440d253 + b4d73b2 commit 498e0c6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions apps/OpenSign/src/pages/TemplatePlaceholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,6 @@ const TemplatePlaceholder = () => {
inputype = options.includes(defaultdata.textvalidate)
? defaultdata.textvalidate
: "regex";
} else {
inputype = "text";
}

const filterSignerPos = signerPos.filter((data) => data.Id === uniqueId);
Expand All @@ -1158,11 +1156,14 @@ const TemplatePlaceholder = () => {
status: defaultdata?.status || "required",
hint: defaultdata?.hint || "",
defaultValue: defaultdata?.defaultValue || "",
validation: {
type: inputype,
pattern:
inputype === "regex" ? defaultdata.textvalidate : ""
}
validation:
(isSubscribe || !isEnableSubscription) && inputype
? {
type: inputype,
pattern:
inputype === "regex" ? defaultdata.textvalidate : ""
}
: {}
}
};
} else {
Expand Down Expand Up @@ -1206,6 +1207,7 @@ const TemplatePlaceholder = () => {
setIsCheckbox(false);
};

console.log("signerpos", signerPos);
return (
<div>
<Title title={"Template"} />
Expand Down

0 comments on commit 498e0c6

Please sign in to comment.