Add Choices | Classic

The Add Choices property of the Select field enables you to enter the options that will be visible to the content managers as choices to select from.

Warning: If you change the data type after entering the choices, the values added as choices may be lost.

You can add choices within the Select field in two ways:

  • Single-value choices: You can add options containing simple values, for example, in eCommerce, let someone pick a shirt size from XS, S, M, L, or XL.
    normal_choices_for_select_field.jpg
  • Key-value pair choices: You can toggle on the Enable key-value button and add key-value pairs separated by a colon (:). Every choice is separated by a line break.

    Note: Only the key name is displayed in the entry page.

    For example, we might want to specify the state code for a state while defining choices in a government website, so we can specify key-value pairs such as New York : NY.
    key-value_choices_for_select_field.jpg

    Warning: Enabling or disabling the Enable key-value button erases your existing choices. Proceed with caution to avoid any loss of data.

Note: You can add up to 100 options that are up to 100 characters long.

After you configure this property in your content type and create an entry, you will see your entry page as follows:

add-choices.png

Additional Resources: If you want to set this property to the Select field when creating your content type via an API request, refer to the JSON payload of the Select field and the Field parameters section.

Changing an existing field property may result in loss of data. To avoid such, check out our Content Type Change Management guide before you go ahead.

Was this article helpful?

Thanks for your feedbackSmile-icon

On This Page

^