database/custom-fields/
directory with a timestamp prefix and the name you specified.
'text'
- Single line text input'textarea'
- Multi-line text area'rich_editor'
- Rich text editor'markdown_editor'
- Markdown editor'number'
- Numeric input'currency'
- Currency formatted input'date'
- Date picker'datetime'
- Date and time picker'checkbox'
- Single checkbox'toggle'
- Toggle switch'select'
- Dropdown selection'radio'
- Radio buttons'multi_select'
- Multiple selection dropdown'checkbox_list'
- Checkbox list'toggle_buttons'
- Toggle button group'tags_input'
- Tag input field'color_picker'
- Color selection'link'
- URL inputnew()
method with CustomFieldData
objects to create new custom fields:
options()
method:
lookupType()
method:
CustomFieldWidth
enum:
update()
method:
delete()
method:
'Customer Type'
instead of 'Type'
'customer_type'
instead of 'CustomerType'
systemDefined: true
for preset fields