Skip to content

Commit 218cea0

Browse files
Merge pull request #1247 from OpenSignLabs/validation
2 parents 791d8be + f38f5ea commit 218cea0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/OpenSign/src/pages/Form.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,17 @@ const Forms = (props) => {
296296
if (res.data) {
297297
setFileUpload(res.data.url);
298298
setfileload(false);
299+
const title = generateTitleFromFilename(files?.[0]?.name);
300+
setFormData((obj) => ({ ...obj, Name: title }));
299301
}
300302
} catch (err) {
301303
e.target.value = "";
302304
setfileload(false);
303305
setpercentage(0);
304306
console.log("err in libreconverter ", err);
307+
alert(
308+
"We are currently experiencing some issues with processing DOCX files. Please upload the PDF version or contact us on [email protected]"
309+
);
305310
}
306311
}
307312
}
@@ -675,7 +680,9 @@ const Forms = (props) => {
675680
)}
676681
<div className="text-xs">
677682
<label className="block">
678-
{`${t("report-heading.File")} (${t("file-type")})`}
683+
{`${t("report-heading.File")} (${t("file-type")}${
684+
isEnableSubscription ? ", docx)" : ")"
685+
}`}
679686
<span className="text-red-500 text-[13px]">*</span>
680687
</label>
681688
{fileupload.length > 0 ? (
@@ -840,7 +847,7 @@ const Forms = (props) => {
840847
</div>
841848
)}
842849
{isAdvanceOpt && (
843-
<div className={` overflow-y-auto z-[500] transition-all`}>
850+
<div className="overflow-y-auto z-[500] transition-all">
844851
{props.title === "Request Signatures" && (
845852
<div className="text-xs mt-2">
846853
<label className="block">

0 commit comments

Comments
 (0)