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>
10 <labelField>label
</labelField>
13 <type>int unsigned
</type>
14 <title>Custom Field ID
</title>
15 <required>true
</required>
16 <comment>Unique Custom Field ID
</comment>
21 <autoincrement>true
</autoincrement>
24 <name>custom_group_id
</name>
25 <type>int unsigned
</type>
26 <title>Custom Group
</title>
27 <required>true
</required>
28 <comment>FK to civicrm_custom_group.
</comment>
31 <table>civicrm_custom_group
</table>
32 <keyColumn>id
</keyColumn>
33 <labelColumn>title
</labelColumn>
40 <name>custom_group_id
</name>
41 <table>civicrm_custom_group
</table>
44 <onDelete>CASCADE
</onDelete>
49 <title>Custom Field Name
</title>
51 <comment>Variable name/programmatic handle for this group.
</comment>
57 <title>Custom Field Label
</title>
59 <required>true
</required>
60 <localizable>true
</localizable>
61 <comment>Text for form field label (also friendly name for administering this custom property).
</comment>
65 <name>data_type
</name>
67 <title>Custom Field Data Type
</title>
69 <required>true
</required>
70 <comment>Controls location of data storage in extended_data table.
</comment>
72 <callback>CRM_Core_BAO_CustomField::dataType
</callback>
77 <label>Data Type
</label>
81 <name>html_type
</name>
83 <title>Custom Field HTML Type
</title>
85 <required>true
</required>
86 <comment>HTML types plus several built-in extended types.
</comment>
88 <callback>CRM_Core_SelectValues::customHtmlType
</callback>
92 <label>Field Input Type
</label>
97 <name>default_value
</name>
99 <title>Custom Field Default
</title>
101 <comment>Use form_options.is_default for field_types which use options.
</comment>
105 <name>is_required
</name>
106 <title>Custom Field Is Required?
</title>
108 <comment>Is a value required for this property.
</comment>
113 <name>is_searchable
</name>
114 <title>Allow Searching on Field?
</title>
116 <comment>Is this property searchable.
</comment>
121 <name>is_search_range
</name>
123 <title>Search as a Range
</title>
124 <comment>Is this property range searchable.
</comment>
132 <required>true
</required>
134 <comment>Controls field display order within an extended property group.
</comment>
138 <name>help_pre
</name>
140 <title>Custom Field Pre Text
</title>
141 <localizable>true
</localizable>
142 <comment>Description and/or help text to display before this field.
</comment>
146 <name>help_post
</name>
148 <title>Custom Field Post Text
</title>
149 <localizable>true
</localizable>
150 <comment>Description and/or help text to display after this field.
</comment>
156 <title>Custom Field Formatting
</title>
158 <comment>Optional format instructions for specific field types, like date types.
</comment>
162 <name>attributes
</name>
164 <title>Custom Field Attributes
</title>
166 <comment>Store collection of type-appropriate attributes, e.g. textarea needs rows/cols attributes
</comment>
170 <name>javascript
</name>
172 <title>Custom Field Javascript
</title>
174 <comment>Optional scripting attributes for field.
</comment>
178 <name>is_active
</name>
180 <title>Custom Field Is Active?
</title>
181 <comment>Is this property active?
</comment>
188 <title>Field is Viewable
</title>
190 <comment>Is this property set by PHP Code? A code field is viewable but not editable
</comment>
194 <name>options_per_line
</name>
195 <type>int unsigned
</type>
196 <title>Field Options Per Line
</title>
197 <comment>number of options per line for checkbox and radio
</comment>
200 <name>text_length
</name>
201 <type>int unsigned
</type>
202 <title>Field Length
</title>
203 <comment>field length if alphanumeric
</comment>
207 <name>start_date_years
</name>
209 <title>Field Start Date
</title>
210 <comment>Date may be up to start_date_years years prior to the current date.
</comment>
214 <name>end_date_years
</name>
216 <title>Field End Date
</title>
217 <comment>Date may be up to end_date_years years after the current date.
</comment>
221 <name>date_format
</name>
223 <title>Field Data Format
</title>
225 <comment>date format for custom date
</comment>
228 <callback>CRM_Core_SelectValues::getDatePluginInputFormats
</callback>
232 <name>time_format
</name>
233 <type>int unsigned
</type>
234 <title>Field Time Format
</title>
235 <comment>time format for custom date
</comment>
238 <callback>CRM_Core_SelectValues::getTimeFormats
</callback>
242 <name>note_columns
</name>
243 <type>int unsigned
</type>
244 <title>Field Note Columns
</title>
245 <comment>Number of columns in Note Field
</comment>
249 <name>note_rows
</name>
250 <type>int unsigned
</type>
251 <title>Field Note Rows
</title>
252 <comment>Number of rows in Note Field
</comment>
256 <name>column_name
</name>
258 <title>Field Column Name
</title>
260 <comment>Name of the column that holds the values for this field.
</comment>
264 <name>option_group_id
</name>
265 <type>int unsigned
</type>
266 <title>Field Option Group
</title>
267 <comment>For elements with options, the option group id that is used
</comment>
270 <table>civicrm_option_group
</table>
271 <keyColumn>id
</keyColumn>
272 <labelColumn>title
</labelColumn>
276 <name>option_group_id
</name>
277 <table>civicrm_option_group
</table>
280 <onDelete>SET NULL
</onDelete>
283 <name>serialize
</name>
284 <type>int unsigned
</type>
285 <title>Serialize
</title>
287 <comment>Serialization method - a non-zero value indicates a multi-valued field.
</comment>
289 <callback>CRM_Core_SelectValues::fieldSerialization
</callback>
292 <required>true
</required>
298 <title>Field Filter
</title>
300 <comment>Stores Contact Get API params contact reference custom fields. May be used for other filters in the future.
</comment>
304 <name>in_selector
</name>
306 <title>Field Display
</title>
308 <comment>Should the multi-record custom field values be displayed in tab table listing
</comment>
312 <name>UI_label_custom_group_id
</name>
313 <fieldName>label
</fieldName>
314 <fieldName>custom_group_id
</fieldName>
315 <unique>true
</unique>
319 <name>UI_name_custom_group_id
</name>
320 <fieldName>name
</fieldName>
321 <fieldName>custom_group_id
</fieldName>
322 <unique>true
</unique>