Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Blank option not allowed

Posted on by 55
How do I make remove or make the blank choice on an option set drop down list invalid in Dynamics 365?
  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Blank option not allowed

    Glad I could help :).

    If the suggestion helped you, please mark it as answer and close the thread. It may help someone else as well.

  • Suggested answer
    JustLearning Profile Picture
    JustLearning 55 on at
    RE: Blank option not allowed

    Hi Ravi, that was exactly what I was looking for. Annoying it took me so long but you live and learn. Thank you.

  • JustLearning Profile Picture
    JustLearning 55 on at
    RE: Blank option not allowed

    Hi Goutam, thanks for this. Once I changed the Business Rule to 'Operator' > 'Does not contain data' the 'click to enter' option isn't allowed. Thank you.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Blank option not allowed

    Hi,

    If you already have a business rule, try chaging/ enhancing that rule to check for "field doen not contains data"  OR "field is 'Please Select..' " then display an error message.

    Something like below. This will ensure that the user select the value for the field other than please select. The only downside is that it will appear as a red cross next to field if that's not a concern for you..

    br_5F00_industry.png

    Hope this helps

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Blank option not allowed

    Hi,

    Create a business rule  like below -

    IF optionset field does not contain data

    Set Field value = some options from optionset.

    Or you can follow below reference as well using default value -

    www.marksgroup.net/.../dynamics-365-using-business-rules-set-default-values

  • JustLearning Profile Picture
    JustLearning 55 on at
    RE: Blank option not allowed

    An error message displays if 'Please select...' is left in the field but if they click on the 'blank' option which displays 'click to enter' they can progress on leaving the field without the necessary data.

  • JustLearning Profile Picture
    JustLearning 55 on at
    RE: Blank option not allowed

    Hi Mahadeo,

    I do have the Field Requirement set to Optional and a Business Rule stating that if Please select... is chosen, display an error message. I'm trying to set it so that the sales agents have to choose an option other than 'blank' and 'Please select...'.

  • JustLearning Profile Picture
    JustLearning 55 on at
    RE: Blank option not allowed

    Hi Ravi,

    I have 'Please select...' as the Default Value, but just above it is a blank space (orange line). When you click on the blank space it says 'click to enter'.

    Blank-space-Dynamics-365.jpg

    I saw an older article on stating javascript may be needed but don't know where to enter the code.

    https://community.dynamics.com/crm/f/117/t/155711

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Blank option not allowed

    Hi,

    In order to remove the blank value, you can set a default value in the configuration properties.

    optionsetdefault.png

    Hope this helps

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Blank option not allowed

    make option set or drop down list as required field.

    you need to change field requirement level to "Required" from customization.

    Entity --> Fields --> Open field and on to right side you will see field requirement level, change it to business required, save and publish customization.

    fieldreq.PNG

    When user remove or nothing is selected in dropdown list, CRM will not allow to save record.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans