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>
24 <autoincrement>true
</autoincrement>
27 <name>custom_group_id
</name>
28 <type>int unsigned
</type>
29 <title>Custom Group
</title>
30 <required>true
</required>
31 <comment>FK to civicrm_custom_group.
</comment>
34 <table>civicrm_custom_group
</table>
35 <keyColumn>id
</keyColumn>
36 <labelColumn>title
</labelColumn>
43 <name>custom_group_id
</name>
44 <table>civicrm_custom_group
</table>
47 <onDelete>CASCADE
</onDelete>
52 <title>Custom Field Name
</title>
54 <comment>Variable name/programmatic handle for this group.
</comment>
60 <title>Custom Field Label
</title>
62 <required>true
</required>
63 <localizable>true
</localizable>
64 <comment>Text for form field label (also friendly name for administering this custom property).
</comment>
68 <name>data_type
</name>
70 <title>Custom Field Data Type
</title>
72 <required>true
</required>
73 <comment>Controls location of data storage in extended_data table.
</comment>
75 <callback>CRM_Core_BAO_CustomField::dataType
</callback>
80 <label>Data Type
</label>
84 <name>html_type
</name>
86 <title>Custom Field HTML Type
</title>
88 <required>true
</required>
89 <comment>HTML types plus several built-in extended types.
</comment>
91 <callback>CRM_Core_SelectValues::customHtmlType
</callback>
95 <label>Field Input Type
</label>
100 <name>default_value
</name>
102 <title>Custom Field Default
</title>
104 <comment>Use form_options.is_default for field_types which use options.
</comment>
108 <name>is_required
</name>
109 <title>Custom Field Is Required?
</title>
111 <comment>Is a value required for this property.
</comment>
116 <name>is_searchable
</name>
117 <title>Allow Searching on Field?
</title>
119 <comment>Is this property searchable.
</comment>
124 <name>is_search_range
</name>
126 <title>Search as a Range
</title>
127 <comment>Is this property range searchable.
</comment>
135 <required>true
</required>
137 <comment>Controls field display order within an extended property group.
</comment>
141 <name>help_pre
</name>
143 <title>Custom Field Pre Text
</title>
144 <localizable>true
</localizable>
145 <comment>Description and/or help text to display before this field.
</comment>
149 <name>help_post
</name>
151 <title>Custom Field Post Text
</title>
152 <localizable>true
</localizable>
153 <comment>Description and/or help text to display after this field.
</comment>
159 <title>Custom Field Formatting
</title>
161 <comment>Optional format instructions for specific field types, like date types.
</comment>
165 <name>attributes
</name>
167 <title>Custom Field Attributes
</title>
169 <comment>Store collection of type-appropriate attributes, e.g. textarea needs rows/cols attributes
</comment>
173 <name>javascript
</name>
175 <title>Custom Field Javascript
</title>
177 <comment>Optional scripting attributes for field.
</comment>
181 <name>is_active
</name>
183 <title>Custom Field Is Active?
</title>
184 <comment>Is this property active?
</comment>
191 <title>Field is Viewable
</title>
193 <comment>Is this property set by PHP Code? A code field is viewable but not editable
</comment>
197 <name>options_per_line
</name>
198 <type>int unsigned
</type>
199 <title>Field Options Per Line
</title>
200 <comment>number of options per line for checkbox and radio
</comment>
203 <name>text_length
</name>
204 <type>int unsigned
</type>
205 <title>Field Length
</title>
206 <comment>field length if alphanumeric
</comment>
210 <name>start_date_years
</name>
212 <title>Field Start Date
</title>
213 <comment>Date may be up to start_date_years years prior to the current date.
</comment>
217 <name>end_date_years
</name>
219 <title>Field End Date
</title>
220 <comment>Date may be up to end_date_years years after the current date.
</comment>
224 <name>date_format
</name>
226 <title>Field Data Format
</title>
228 <comment>date format for custom date
</comment>
231 <callback>CRM_Core_SelectValues::getDatePluginInputFormats
</callback>
235 <name>time_format
</name>
236 <type>int unsigned
</type>
237 <title>Field Time Format
</title>
238 <comment>time format for custom date
</comment>
241 <callback>CRM_Core_SelectValues::getTimeFormats
</callback>
245 <name>note_columns
</name>
246 <type>int unsigned
</type>
247 <title>Field Note Columns
</title>
248 <comment>Number of columns in Note Field
</comment>
252 <name>note_rows
</name>
253 <type>int unsigned
</type>
254 <title>Field Note Rows
</title>
255 <comment>Number of rows in Note Field
</comment>
259 <name>column_name
</name>
261 <title>Field Column Name
</title>
263 <comment>Name of the column that holds the values for this field.
</comment>
267 <name>option_group_id
</name>
268 <type>int unsigned
</type>
269 <title>Field Option Group
</title>
270 <comment>For elements with options, the option group id that is used
</comment>
273 <table>civicrm_option_group
</table>
274 <keyColumn>id
</keyColumn>
275 <labelColumn>title
</labelColumn>
279 <name>option_group_id
</name>
280 <table>civicrm_option_group
</table>
283 <onDelete>SET NULL
</onDelete>
286 <name>serialize
</name>
287 <type>int unsigned
</type>
288 <title>Serialize
</title>
290 <comment>Serialization method - a non-zero value indicates a multi-valued field.
</comment>
292 <callback>CRM_Core_SelectValues::fieldSerialization
</callback>
295 <required>true
</required>
301 <title>Field Filter
</title>
303 <comment>Stores Contact Get API params contact reference custom fields. May be used for other filters in the future.
</comment>
307 <name>in_selector
</name>
309 <title>Field Display
</title>
311 <comment>Should the multi-record custom field values be displayed in tab table listing
</comment>
315 <name>UI_label_custom_group_id
</name>
316 <fieldName>label
</fieldName>
317 <fieldName>custom_group_id
</fieldName>
318 <unique>true
</unique>
322 <name>UI_name_custom_group_id
</name>
323 <fieldName>name
</fieldName>
324 <fieldName>custom_group_id
</fieldName>
325 <unique>true
</unique>