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 fieldname Data Fieldname
5 insert_after Select Insert After

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

6 column_break_6 Column Break
7 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
8 precision Select Precision

Set non-standard precision for a Float or Currency field

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

Controller

frappe.custom.doctype.custom_field.custom_field

Class CustomField

Inherits from frappe.model.document.Document

autoname (self)

No docs


on_trash (self)

No docs


on_update (self)

No docs


set_fieldname (self)

No docs


set_property_setter_for_idx (self)

No docs


validate (self)

No docs


validate_insert_after (self, meta)

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