Custom Fields
Custom Fields
The Custom Fields group provides the flexibility to define and connect the form fields with the custom models within your project.
Please check common filed settings
The available custom field elements are:
Select
This field allows you to specify a custom model path as the data source for the Select field. You can enter the path to the desired custom model that will provide the options for the Select dropdown list.
Enable search: If this option is enabled, the Select field has an input that enables users to search for specific records.
Use Ajax: Provide a smoother user experience when working with large datasets.
Model Path Source: Enter the path to your model in the format /app/Models/My/Model
or /app/Models/My/Model as MyModel
. This path should point to the location of your model within the project directory structure.
Set Columns: Enter the column name from the corresponding database table that you want to use as the titles for the dropdown options in the Select field. This column(s) will provide the display text for each option in the dropdown list.
Set Sort Columns: Enter the column name from the database table that you want to use for sorting. By specifying the sort columns, you can determine the order in which the options are displayed in the dropdown list.
Select Many
Similar to the Select field, this field enables you to define a custom model path as the data source for a multi-select dropdown. Enter the path to the custom model that will fill the items for the multi-select field list.
Variable Name: Choose a meaningful and descriptive name for the variable that will hold the settings data.
Enable Sorting: If you enable this setting, users can rearrange the order of the selected records.
Use Ajax: Provide a smoother user experience when working with large datasets.
Database Name: Enter the name of the database field where the selected records will be stored. This allows for proper storage, retrieval, and processing of the selected options.
Model Path Source: Enter the path to your model in the format /app/Models/My/Model
or /app/Models/My/Model as MyModel
. This path should point to the location of your model within the project directory structure.
Set Columns: Enter the column name from the corresponding database table that you want to use as titles for the dropdown options in the Select Many field. For each item in the list this column(s) defines the text to be displayed.
Set Sort Columns: Enter the column name from the database table that you want to use for sorting. By specifying the sort columns, you can determine the order in which the options are displayed in the list.
Checkbox Many
This field type allows you to specify a custom model path as the data source for a multi-checkbox field. Enter the path to the custom model that will provide the options for the multi-checkbox field.
Variable Name: Choose a meaningful and descriptive name for the variable that will hold the settings data.
Enable Sorting: By enabling this setting, you let users rearrange the order of the selected records.
Items Direction: Choose the desired display direction of records.
- Vertical: This option displays records using the vertical layout and stacks the items one over the other in a column.
- Horizontal: This option displays records using the horizontal layout and places the items next to each other in a row.
Database Name: Enter the name of the database field where the selected records will be stored. This allows for proper storage, retrieval, and processing of the selected options.
Model Path Source: Enter the path to your model in the format /app/Models/My/Model
or /app/Models/My/Model as MyModel
. This path should point to the location of your model within the project directory structure.
Set Columns: Enter the column name from the corresponding database table that you want to use as titles for the items in the Checkbox Many field. For each item in the list this column(s) defines the text to be displayed.
Set Sort Columns: Enter the column name from the database table that you want to use for sorting. By specifying the sort columns, you can determine the order in which the options are displayed in the list.
Radio Group
The Radio Group field permits you to connect a custom model path as the data source for a radio group. Enter the path to the custom model that will define the items in the radio button group.
Items Direction: Choose the desired display direction of records.
- Vertical: This option displays records using the vertical layout and stacks the items one over the other in a column.
- Horizontal: This option displays records using the horizontal layout and places the items next to each other in a row.
Model Path Source: Enter the path to your model in the format /app/Models/My/Model
or /app/Models/My/Model as MyModel
. This path should point to the location of your model within the project directory structure.
Set Columns: Enter the column name from the corresponding database table that you want to use as titles for the items in the Radio Group field. For each item in the list this column(s) defines the text to be displayed.
Set Sort Columns: Enter the column name from the database table that you want to use for sorting. By specifying the sort columns, you can determine the order in which the options are displayed in the list.