fix: do not allow to make check field mandatory
This commit is contained in:
parent
324c3e24c4
commit
f39c6e18f6
1 changed files with 4 additions and 0 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue