Customize the Sitefinity CMS Page Custom Fields Choices
sitefinity | 2024-01-20
In Sitefinity CMS v14.4, the Custom Fields - Choices interface widget defaults to displaying as a Checkbox.
This may not be ideal when you want to change the display to other options, such as Radio Buttons or Dropdowns.
This guide walks you through how to customize this field to your desired format.
🚩 Problem
By default, when you create a custom field for Choices in Sitefinity, the system automatically uses Checkboxes.
There is no simple way in the interface to change it to other options like Dropdown or Radio Buttons.
💡 Solution
To change the Choices field from Checkboxes to another type of widget (like Radio Buttons or Dropdowns), you’ll need to adjust settings in the Advanced Settings section.
Steps to Change the Interface Widget:
-
Navigate to the following path:
ContentView -> Controls -> FrontendPages -> Views -> FrontendPagesCreate -> Sections -> CustomFieldSection -> Fields -> <field_name> -> RenderChoiceAs
This path allows you to modify the widget type.
-
Apply the changes to both the FrontendPagesCreate and FrontendPagesEdit views to ensure the customization works across both page creation and editing interfaces.
🧠Finally
Once the changes are applied, navigate to a page in Sitefinity CMS:
- Go to Page → Select a Page → Title & Properties.
- You will now see that the Choices field has been updated to Radio Buttons instead of the default Checkboxes.