In Sitecore 9.0, when I create a Droplink or Droplist Sitecore generates a "blank" selection. For example I have a Droplink from Monday to Sunday, the first option will be a blank selection.
How can we remove this blank selection?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityIn Sitecore 9.0, when I create a Droplink or Droplist Sitecore generates a "blank" selection. For example I have a Droplink from Monday to Sunday, the first option will be a blank selection.
How can we remove this blank selection?
Unfortunately, you cannot completely remove the blank option. Instead, I would recommend setting the Required field validator on your field so that a user gets a warning (or cannot save it) if they leave the field blank.
Scroll down to the Validation Rules section and add the Required item to all four validation fields:
If you want to prevent content authors from saving the item at all if there is no value selected, you can create a copy of the default Required validator and increase the error level of its failures.
/sitecore/system/Settings/Validation Rules/Field Rules/Required
Result=FatalError