Skip to content

🔥 The free & Open Source DocuSign alternative

fix: label widgets hint, date default format issue

RaktimaNXGf4090c0c6128
diff --git a/apps/OpenSign/src/components/pdf/Placeholder.js b/apps/OpenSign/src/components/pdf/Placeholder.js
index 8d3bb2510..f21cb988f 100644
--- a/apps/OpenSign/src/components/pdf/Placeholder.js
+++ b/apps/OpenSign/src/components/pdf/Placeholder.js
@@ -74,7 +74,9 @@ function Placeholder(props) {
const newDate = moment(milliseconds).format(dateFormat);
const dateObj = {
date: newDate,
- format: dateFormat
+ format: props.pos?.options?.validation?.format
+ ? props.pos?.options?.validation?.format
+ : "MM/dd/YYYY"
};
setSelectDate(dateObj);
}
diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.js
index 29c250458..795d942bd 100644
--- a/apps/OpenSign/src/components/pdf/PlaceholderType.js
+++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js
@@ -755,6 +755,7 @@ function PlaceholderType(props) {
case "label":
return (
<textarea
+ placeholder="Enter label"
rows={1}
onChange={(e) => {
onChangeInput(