*
* Generated from xml/schema/CRM/Core/CustomField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b36f8202db0be873208f1895f3b3dc87)
+ * (GenCodeChecksum:f102cd2c666ba101ff0933c9fdac92ce)
*/
/**
*/
public $help_post;
- /**
- * Optional format instructions for specific field types, like date types.
- *
- * @var string|null
- * (SQL type: varchar(64))
- * Note that values will be retrieved from the database as a string.
- */
- public $mask;
-
/**
* Store collection of type-appropriate attributes, e.g. textarea needs rows/cols attributes
*
'localizable' => 1,
'add' => '1.1',
],
- 'mask' => [
- 'name' => 'mask',
- 'type' => CRM_Utils_Type::T_STRING,
- 'title' => ts('Custom Field Formatting'),
- 'description' => ts('Optional format instructions for specific field types, like date types.'),
- 'maxlength' => 64,
- 'size' => CRM_Utils_Type::BIG,
- 'where' => 'civicrm_custom_field.mask',
- 'table_name' => 'civicrm_custom_field',
- 'entity' => 'CustomField',
- 'bao' => 'CRM_Core_BAO_CustomField',
- 'localizable' => 0,
- 'add' => '1.1',
- ],
'attributes' => [
'name' => 'attributes',
'type' => CRM_Utils_Type::T_STRING,
'File' => ['File'],
'Link' => ['Link'],
'ContactReference' => ['Autocomplete-Select'],
+ 'EntityReference' => ['Autocomplete-Select'],
];
/**
$this->add('number', 'options_per_line', ts('Options Per Line'), ['min' => 0]);
$this->addRule('options_per_line', ts('must be a numeric value'), 'numeric');
- // default value, help pre, help post, mask, attributes, javascript ?
+ // default value, help pre, help post
$this->add('text', 'default_value', ts('Default Value'),
$attributes['default_value']
);
$this->add('textarea', 'help_post', ts('Field Post Help'),
$attributes['help_post']
);
- $this->add('text', 'mask', ts('Mask'),
- $attributes['mask']
- );
// is active ?
$this->add('advcheckbox', 'is_active', ts('Active?'));
}
}
elseif (in_array($htmlType, self::$htmlTypesWithOptions) &&
- !in_array($dataType, ['Boolean', 'Country', 'StateProvince', 'ContactReference'])
+ !in_array($dataType, ['Boolean', 'Country', 'StateProvince', 'ContactReference', 'EntityReference'])
) {
if (!$fields['option_group_id']) {
$errors['option_group_id'] = ts('You must select a Multiple Choice Option set if you chose Reuse an existing set.');