Field PropertiesNew in 5.0+
When building your own custom field types, integrations or any other module that presents editable fields in the Freeform form builder, you will find a comprehensive list on available properties and how to use them here in this document.
Currently, these are the available property types you can add to your fields in the builder:
- #[Boolean] - display a Lightswitch field.
- #[Checkboxes] - display a list of checkboxes.
- #[CodeEditor] - display a code editor with specific syntax highlighting.
- #[ColorPicker] - display a color picker.
- #[DatePicker] - display a date picker.
- #[DynamicSelect] - display a dropdown that populates values from an endpoint, capable of also reading other properties to pass to the endpoint
- #[DynamicCheckboxes] - display a list of checkboxes that populates values from an endpoint, capable of also reading other properties to pass to the endpoint
- #[Field] - display a dropdown of all the currently available form fields. The fields displayed can be filtered by their implementations.
- #[Hidden] - having a property be available for other fields, but not displaying it in the builder.
- #[Integer] - numeric input field.
- #[MinMax] - a two-input combo for setting min and max numeric values.
- #[NotificationTemplate] - a dropdown letting you select a notification template.
- #[Recipients] - an input that lets the user specify one or more email recipients.
- #[Select] - a dropdown with predetermined values.
- #[TabularData] - lets the user edit tabular data, which is configured by the attribute.
- #[Text] - an input field.
- #[TextArea] - a textarea field.
- #[Wysiwyg] - a WYSIWYG editor.
For more advanced use-cases, you can also create your own option generators, value generators, and value transformers. Read more about these in the Generators and Transformers document.