Browse Source

MST TEB field depends on condition

version2
venkata akhil 1 year ago
parent
commit
0f4f076d14
  1. 53
      smart_service/phase_2/doctype/special_tool_information/special_tool_information.json

53
smart_service/phase_2/doctype/special_tool_information/special_tool_information.json

@ -20,17 +20,15 @@
"tool_type", "tool_type",
"tool_name", "tool_name",
"my_id", "my_id",
"section_break_2etis", "section_break_e91wx",
"instructions",
"teb_instructions",
"keywords", "keywords",
"column_break_witqs",
"pdf", "pdf",
"column_break_plwrg", "column_break_plwrg",
"image", "image",
"column_break_uq15d", "tool_name",
"video", "tool_type"
"section_break_e91wx",
"instructions",
"teb_instructions"
], ],
"fields": [ "fields": [
{ {
@ -110,7 +108,13 @@
"set_only_once": 1 "set_only_once": 1
}, },
{ {
"depends_on": "eval:doc.category !='TEB';", "depends_on": "eval:doc.category !='TEB';",
"fieldname": "aggregate_image",
"fieldtype": "Attach Image",
"label": "Aggregate Image"
},
{
"depends_on": "eval:doc.category !='TEB';",
"fieldname": "pdf", "fieldname": "pdf",
"fieldtype": "Attach", "fieldtype": "Attach",
"label": "PDF" "label": "PDF"
@ -122,7 +126,7 @@
"options": "Instructions" "options": "Instructions"
}, },
{ {
"depends_on": "eval:doc.category !='TEB';", "depends_on": "eval:doc.category !='TEB';",
"fieldname": "tool_name", "fieldname": "tool_name",
"fieldtype": "Data", "fieldtype": "Data",
"label": "Tool Name" "label": "Tool Name"
@ -141,7 +145,6 @@
"options": "TEB Instructions" "options": "TEB Instructions"
}, },
{ {
"depends_on": "eval:doc.category !='TEB';",
"fieldname": "image", "fieldname": "image",
"fieldtype": "Attach Image", "fieldtype": "Attach Image",
"label": "Image" "label": "Image"
@ -149,39 +152,11 @@
{ {
"fieldname": "column_break_m3p9i", "fieldname": "column_break_m3p9i",
"fieldtype": "Column Break" "fieldtype": "Column Break"
},
{
"fieldname": "section_break_2etis",
"fieldtype": "Section Break"
},
{
"fieldname": "column_break_witqs",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_plwrg",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_uq15d",
"fieldtype": "Column Break"
},
{
"depends_on": "eval:doc.category !='TEB';",
"fieldname": "video",
"fieldtype": "Attach",
"label": "Video"
},
{
"fieldname": "tool_image",
"fieldtype": "Attach Image",
"label": "Tool Image",
"reqd": 1
} }
], ],
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2023-09-28 10:22:26.174524", "modified": "2023-09-27 11:59:38.479380",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Phase-2", "module": "Phase-2",
"name": "Special Tool Information", "name": "Special Tool Information",

Loading…
Cancel
Save