1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>CustomField
</class>
6 <name>civicrm_custom_field
</name>
7 <comment>Stores info about an extended (custom) property (data and form field info).
</comment>
12 <type>int unsigned
</type>
13 <title>Custom Field ID
</title>
14 <required>true
</required>
15 <comment>Unique Custom Field ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>custom_group_id
</name>
24 <type>int unsigned
</type>
25 <title>Custom Group
</title>
26 <required>true
</required>
27 <comment>FK to civicrm_custom_group.
</comment>
30 <table>civicrm_custom_group
</table>
31 <keyColumn>id
</keyColumn>
32 <labelColumn>title
</labelColumn>
39 <name>custom_group_id
</name>
40 <table>civicrm_custom_group
</table>
43 <onDelete>CASCADE
</onDelete>
48 <title>Custom Field Name
</title>
50 <comment>Variable name/programmatic handle for this group.
</comment>
56 <title>Custom Field Label
</title>
58 <required>true
</required>
59 <localizable>true
</localizable>
60 <comment>Text for form field label (also friendly name for administering this custom property).
</comment>
64 <name>data_type
</name>
66 <title>Custom Field Data Type
</title>
68 <required>true
</required>
69 <comment>Controls location of data storage in extended_data table.
</comment>
71 <callback>CRM_Core_BAO_CustomField::dataType
</callback>
79 <name>html_type
</name>
81 <title>Custom Field HTMl Type
</title>
83 <required>true
</required>
84 <comment>HTML types plus several built-in extended types.
</comment>
86 <callback>CRM_Core_SelectValues::customHtmlType
</callback>
91 <name>default_value
</name>
93 <title>Custom Field Default
</title>
95 <comment>Use form_options.is_default for field_types which use options.
</comment>
99 <name>is_required
</name>
100 <title>Custom Field Is Required?
</title>
102 <comment>Is a value required for this property.
</comment>
106 <name>is_searchable
</name>
107 <title>Allow Searching on Field?
</title>
109 <comment>Is this property searchable.
</comment>
113 <name>is_search_range
</name>
115 <title>Search as a Range
</title>
116 <comment>Is this property range searchable.
</comment>
124 <required>true
</required>
126 <comment>Controls field display order within an extended property group.
</comment>
130 <name>help_pre
</name>
132 <title>Custom Field Pre Text
</title>
133 <localizable>true
</localizable>
134 <comment>Description and/or help text to display before this field.
</comment>
138 <name>help_post
</name>
140 <title>Custom Field Post Text
</title>
141 <localizable>true
</localizable>
142 <comment>Description and/or help text to display after this field.
</comment>
148 <title>Custom Field Formatting
</title>
150 <comment>Optional format instructions for specific field types, like date types.
</comment>
154 <name>attributes
</name>
156 <title>Custom Field Attributes
</title>
158 <comment>Store collection of type-appropriate attributes, e.g. textarea needs rows/cols attributes
</comment>
162 <name>javascript
</name>
164 <title>Custom Field Javascript
</title>
166 <comment>Optional scripting attributes for field.
</comment>
170 <name>is_active
</name>
172 <title>Custom Field Is Active?
</title>
173 <comment>Is this property active?
</comment>
179 <title>Field is Viewable
</title>
180 <comment>Is this property set by PHP Code? A code field is viewable but not editable
</comment>
184 <name>options_per_line
</name>
185 <type>int unsigned
</type>
186 <title>Field Options Per Line
</title>
187 <comment>number of options per line for checkbox and radio
</comment>
190 <name>text_length
</name>
191 <type>int unsigned
</type>
192 <title>Field Length
</title>
193 <comment>field length if alphanumeric
</comment>
197 <name>start_date_years
</name>
199 <title>Field Start Date
</title>
200 <comment>Date may be up to start_date_years years prior to the current date.
</comment>
204 <name>end_date_years
</name>
206 <title>Field End Date
</title>
207 <comment>Date may be up to end_date_years years after the current date.
</comment>
211 <name>date_parts
</name>
214 <comment>which date part included in display
</comment>
219 <name>date_format
</name>
221 <title>Field Data Format
</title>
223 <comment>date format for custom date
</comment>
227 <name>time_format
</name>
228 <type>int unsigned
</type>
229 <title>Field Time Format
</title>
230 <comment>time format for custom date
</comment>
234 <name>note_columns
</name>
235 <type>int unsigned
</type>
236 <title>Field Note Columns
</title>
237 <comment> Number of columns in Note Field
</comment>
241 <name>note_rows
</name>
242 <type>int unsigned
</type>
243 <title>Field Note Rows
</title>
244 <comment> Number of rows in Note Field
</comment>
248 <name>column_name
</name>
250 <title>Field Column Name
</title>
252 <comment>Name of the column that holds the values for this field.
</comment>
256 <name>option_group_id
</name>
257 <type>int unsigned
</type>
258 <title>Field Option Group
</title>
259 <comment>For elements with options, the option group id that is used
</comment>
265 <title>Field Filter
</title>
267 <comment>Stores Contact Get API params contact reference custom fields. May be used for other filters in the future.
</comment>
271 <name>in_selector
</name>
273 <title>Field Display
</title>
275 <comment>Should the multi-record custom field values be displayed in tab table listing
</comment>
279 <name>UI_label_custom_group_id
</name>
280 <fieldName>label
</fieldName>
281 <fieldName>custom_group_id
</fieldName>
282 <unique>true
</unique>
286 <name>UI_name_custom_group_id
</name>
287 <fieldName>name
</fieldName>
288 <fieldName>custom_group_id
</fieldName>
289 <unique>true
</unique>