Choices custom field

To add a custom field to a content item, perform the following:

  1. Open the module where you want to add a custom field.
    If you want to add a custom field for pages, in the main menu, click Pages.
    For example, open the Images page or the Events page, or click Pages.
  2. In the right side of the screen, click Custom Fields link.
    The <Content type> data fields page appears. The system displays a list of all custom and default fields for that content type or page.

    For example, on News page, click Custom fields for news link and the News data fields page appears. On Pages page, click Custom fields.

    NOTE: You can add and delete custom fields, but you cannot add or delete default fields.

  3. To add a custom field, in Custom fields section, click Add a field… button.
    A window opens.
  4. In Type dropdown box, select Choices.
  5. Enter a name for the field.
    The name of the field is different from its label. The name of the field serves as reference for that field in the backend.
  6. If you select Multiple choices can be selected checkbox, then the field becomes a checkbox field. If you leave it deselected - it is a radio buttons field or a dropdown box field, depending on the interface widget that you select in the next step.
  7. In Interface widget for entering data dropdown box, you select the widget which the creator or editor of the content item or page will use to complete the field. 
    The default widgets are Radio buttons or Dropdown list. If you have selected Multiple choices can be selected checkbox, the default widget is Checkboxes. All widgets display a list of choices with labels and instructions.
  8. Expand the Advanced section, if you want to change the database and the SQL database type of the custom field, if you want to specify the name of the column of the database table where the custom field is added, and if you want to make additional advanced settings.

    If the Allow empty values checkbox is selected, it means that the field is not required and can be left empty. If you deselect it, the field becomes mandatory.

  9. Click Continue.
    A window appears where you must configure the appearance of the custom field, such as labels and instructions.

Label and texts

On this tab, perform the following:

  1. In Label input field enter the label of the custom field.
    For example, enter Select your favorite icecream.
  2. In Label column, enter all the choiced that you require. 
    You can add or delete choices 

    NOTE: Value is the unique name of each choice. It is not visible by users in the interface. 

  3. When finished, click Done.
    The new field appears in the list of custom fields for the respective module.
    If you want to delete a custom field, click .

Save your changes.

Was this article helpful?