Version 6.x.x 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 collapsible Check Collapsible
8 collapsible_depends_on Data Collapsible Depends On
9 options_help HTML Options Help
10 options Text Options
11 description Text Field Description
12 fieldname Data Fieldname
13 properties Column Break Properties
14 permlevel Int Permission Level
15 reqd Check Is Mandatory Field
16 unique Check Unique
17 read_only Check Read Only
18 ignore_user_permissions Check Ignore User Permissions
19 width Data Width
20 default Text Default Value
21 hidden Check Hidden
22 depends_on Small Text Depends On
23 print_hide Check Print Hide
24 print_hide_if_no_value Check Print Hide If No Value
25 print_width Data Print Width
26 no_copy Check No Copy
27 allow_on_submit Check Allow on Submit
28 in_filter Check In Report Filter
29 in_list_view Check In List View
30 report_hide Check Report Hide
31 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