Version 6.6.5 Source

Table Name: tabCustom Field

Adds a custom field to a DocType

Fields

Sr Fieldname Type Label Options
1 dt Link Document DocType
2 label Data Label
3 label_help HTML Label Help
4 insert_after Select Insert After

Select the label after which you want to insert new field.

5 fieldtype Select Field Type
Attach
Button
Check
Code
Column Break
Currency
Data
Date
Datetime
Dynamic Link
Float
HTML
Image
Int
Link
Long Text
Password
Percent
Read Only
Section Break
Select
Small Text
Table
Text
Text Editor
Time
6 precision Select Precision

Set non-standard precision for a Float or Currency field

1
2
3
4
5
6
7
8
9
7 options_help HTML Options Help
8 options Text Options
9 description Text Field Description
10 fieldname Data Fieldname
11 properties Column Break Properties
12 permlevel Int Permission Level
13 reqd Check Is Mandatory Field
14 unique Check Unique
15 read_only Check Read Only
16 ignore_user_permissions Check Ignore User Permissions
17 width Data Width
18 default Text Default Value
19 hidden Check Hidden
20 depends_on Small Text Depends On
21 print_hide Check Print Hide
22 print_width Data Print Width
23 no_copy Check No Copy
24 allow_on_submit Check Allow on Submit
25 in_filter Check In Report Filter
26 in_list_view Check In List View
27 report_hide Check Report Hide
28 search_index Check Index

Controller

frappe.custom.doctype.custom_field.custom_field

Class CustomField

Inherits from frappe.model.document.Document

autoname (self)

No docs


create_property_setter (self)

No docs


on_trash (self)

No docs


on_update (self)

No docs


set_fieldname (self)

No docs


validate (self)

No docs



frappe.custom.doctype.custom_field.custom_field.create_custom_field (doctype, df)

No docs


frappe.custom.doctype.custom_field.custom_field.create_custom_field_if_values_exist (doctype, df)

No docs


Public API
/api/method/frappe.custom.doctype.custom_field.custom_field.get_fields_label

frappe.custom.doctype.custom_field.custom_field.get_fields_label (doctype=None)

No docs