2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00
books/schemas/core/CustomField.json
18alantom 316f052c53 fix: isRequired handling
- add support for default value in fields
2023-09-20 23:33:48 -07:00

144 lines
2.7 KiB
JSON

{
"name": "CustomField",
"label": "Custom Field",
"isChild": true,
"fields": [
{
"fieldname": "label",
"label": "Label",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "fieldname",
"label": "Fieldname",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "fieldtype",
"label": "Fieldtype",
"fieldtype": "Select",
"options": [
{
"label": "Data",
"value": "Data"
},
{
"label": "Select",
"value": "Select"
},
{
"label": "Link",
"value": "Link"
},
{
"label": "Date",
"value": "Date"
},
{
"label": "Date Time",
"value": "Datetime"
},
{
"label": "Table",
"value": "Table"
},
{
"label": "Autocomplete",
"value": "AutoComplete"
},
{
"label": "Check",
"value": "Check"
},
{
"label": "Attach Image",
"value": "AttachImage"
},
{
"label": "Dynamic Link",
"value": "DynamicLink"
},
{
"label": "Int",
"value": "Int"
},
{
"label": "Float",
"value": "Float"
},
{
"label": "Currency",
"value": "Currency"
},
{
"label": "Text",
"value": "Text"
},
{
"label": "Color",
"value": "Color"
},
{
"label": "Attachment",
"value": "Attachment"
}
],
"default": "Data",
"required": true
},
{
"fieldname": "isRequired",
"label": "Is Required",
"fieldtype": "Check",
"default": false
},
{
"fieldname": "default",
"label": "Default",
"fieldtype": "Data"
},
{
"fieldname": "section",
"label": "Form Section",
"fieldtype": "Data",
"default": "Default"
},
{
"fieldname": "tab",
"label": "Form Tab",
"fieldtype": "Data",
"default": "Custom"
},
{
"fieldname": "options",
"label": "Options",
"fieldtype": "Text"
},
{
"fieldname": "target",
"label": "Target",
"fieldtype": "AutoComplete"
},
{
"fieldname": "references",
"label": "References",
"fieldtype": "AutoComplete"
}
],
"tableFields": ["label", "fieldname", "fieldtype", "isRequired"],
"quickEditFields": [
"label",
"fieldname",
"fieldtype",
"isRequired",
"default",
"options",
"target",
"references",
"section",
"tab"
]
}