feat: Web form fields support for property depends on fields (read-only and mandatory)
This commit is contained in:
parent
71339413d7
commit
b1b1fbbce2
2 changed files with 28 additions and 1 deletions
|
|
@ -59,6 +59,8 @@ frappe.ui.form.on("Web Form", {
|
|||
default: field.default,
|
||||
read_only: field.read_only,
|
||||
depends_on: field.depends_on,
|
||||
mandatory_depends_on: field.mandatory_depends_on,
|
||||
read_only_depends_on: field.read_only_depends_on,
|
||||
hidden: field.hidden,
|
||||
description: field.description
|
||||
});
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@
|
|||
"options",
|
||||
"max_length",
|
||||
"max_value",
|
||||
"property_depends_on_section",
|
||||
"mandatory_depends_on",
|
||||
"column_break_16",
|
||||
"read_only_depends_on",
|
||||
"section_break_6",
|
||||
"description",
|
||||
"column_break_8",
|
||||
|
|
@ -117,11 +121,32 @@
|
|||
"fieldname": "default",
|
||||
"fieldtype": "Data",
|
||||
"label": "Default"
|
||||
},
|
||||
{
|
||||
"fieldname": "property_depends_on_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Property Depends On"
|
||||
},
|
||||
{
|
||||
"fieldname": "mandatory_depends_on",
|
||||
"fieldtype": "Code",
|
||||
"label": "Mandatory Depends On",
|
||||
"options": "JS"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_16",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "read_only_depends_on",
|
||||
"fieldtype": "Code",
|
||||
"label": "Read Only Depends On",
|
||||
"options": "JS"
|
||||
}
|
||||
],
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2020-05-13 13:35:08.454427",
|
||||
"modified": "2020-11-10 23:20:44.354862",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Website",
|
||||
"name": "Web Form Field",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue