fix: do not allow to make check field mandatory

This commit is contained in:
Shariq Ansari 2023-01-02 10:24:26 +05:30
parent 324c3e24c4
commit f39c6e18f6

View file

@ -25,6 +25,10 @@ let docfield_df = computed(() => {
return false;
}
if (df.fieldname === "reqd" && store.selected_field.fieldtype === "Check") {
return false;
}
if (df.fieldname === "options") {
df.fieldtype = "Small Text";
df.options = "";