Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Quick create form setting default value on save even when it is blank

Posted on by 35

Hello all,

So i just wanted to confirm if this is a default behaviour. I have a choice field with default value. A global yes/no choice. 

When i open quick create form it is showing no as default and that part is fine. When i go ahead and remove the no and set it to "--select--" blank value, and save it. Then once i check the saved records it has "no" as value instead of blank 

Is this a default behaviour? I checked dependencies on the field and there are none. no business rule, no workflow, no js to set the value still it is setting to no instead of blank

when i remove the default it is working fine so i am pretty sure it is because of default value that it is not setting to null

Thanks

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,217 Moderator on at
    RE: Quick create form setting default value on save even when it is blank

    hi

    this is the default behavior for choice fields in Dynamics 365 when a default value is set. If a default value is defined for the choice field and the user selects and then removes the default value before saving the record, the system will automatically set the field to the default value when the record is saved.

    This behavior is intended to ensure that the field always has a valid value, even if the user accidentally clears the value. If you want to allow the field to be blank even when a default value is defined, you will need to remove the default value from the field.

    You mentioned that you checked for dependencies on the field and found none, but it's possible that the default value is being set by a system configuration or customization. If you're still having trouble, you may want to reach out to your Dynamics 365 administrator or a developer who can help you investigate further.

    DAniele

  • Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: Quick create form setting default value on save even when it is blank

    Hi noobCoder,

    This may be for required fields, I'm not quite sure,

    when a required field is modified to yes/no, "--select--" is no longer considered a value.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans