diff --git a/apps/OpenSign/src/pages/Form.js b/apps/OpenSign/src/pages/Form.js index 61b446da0..cd0f73af4 100644 --- a/apps/OpenSign/src/pages/Form.js +++ b/apps/OpenSign/src/pages/Form.js @@ -81,6 +81,7 @@ const Forms = (props) => { const [isDecrypting, setIsDecrypting] = useState(false); const [isCorrectPass, setIsCorrectPass] = useState(true); const [isSubscribe, setIsSubscribe] = useState(false); + const [isAdvanceOpt, setIsAdvanceOpt] = useState(false); const handleStrInput = (e) => { setIsCorrectPass(true); setFormData({ ...formData, [e.target.name]: e.target.value }); @@ -798,8 +799,8 @@ const Forms = (props) => { isReset={isReset} /> ) : ( -
-
+
+
{props.title !== "New Template" ? ( { )} )} - - {t("form-title-1")} - -
- -
-
- -
{t("yes")}
-
-
- -
{t("no")}
-
-
-
- -
- {props.title === "Request Signatures" && ( -
- - handleStrInput(e)} - onInvalid={(e) => - e.target.setCustomValidity(t("input-required")) - } - onInput={(e) => e.target.setCustomValidity("")} - required - /> -
- )} -
-
-
- {isEnableSubscription && props.title !== "New Template" && ( -
- - {t("auto-reminder")}{" "} - {!isSubscribe && isEnableSubscription && } - - + {!isAdvanceOpt && ( +
setIsAdvanceOpt(!isAdvanceOpt)} + className={`mt-2.5 op-link op-link-primary text-sm`} + > + {t("advanced-options")}
)} - {formData?.autoreminder === true && - props.title !== "New Template" && ( + {isAdvanceOpt && ( + <> + + {t("form-title-1")} +
+
+
+ +
{t("yes")}
+
+
+ +
{t("no")}
+
+
+
+ +
+ {props.title === "Request Signatures" && ( +
+ + handleStrInput(e)} + onInvalid={(e) => + e.target.setCustomValidity(t("input-required")) + } + onInput={(e) => e.target.setCustomValidity("")} + required + /> +
+ )} +
+ + )} +
+ {isAdvanceOpt && ( +
+ {isEnableSubscription && props.title !== "New Template" && ( +
+ + {t("auto-reminder")}{" "} + {!isSubscribe && isEnableSubscription && } + + - - e.target.setCustomValidity(t("input-required")) - } - onInput={(e) => e.target.setCustomValidity("")} - required - />
)} - {t("form-title-2")} - {isEnableSubscription && ( + {formData?.autoreminder === true && + props.title !== "New Template" && ( +
+ + + e.target.setCustomValidity(t("input-required")) + } + onInput={(e) => e.target.setCustomValidity("")} + required + /> +
+ )} + {t("form-title-2")} + {isEnableSubscription && ( +
+ +
+
+ +
{t("yes")}
+
+
+ +
{t("no")}
+
+
+
+ )}
-
+
{t("yes")}
-
+
{t("no")}
- )} -
- -
-
- -
{t("yes")}
+ {isAdvanceOpt && ( +
setIsAdvanceOpt(!isAdvanceOpt)} + className={`mt-2.5 op-link op-link-primary text-sm`} + > + {t("hide-advanced-options")}
-
- -
{t("no")}
-
-
+ )}
-
+ )}
)}