<p>Yes, if you don't include the dropdown field in your entry form, Craft will store the default value for that field, if one has been set. If no default value has been set, then the value will be <code>null</code>.</p>

CC BY-SA 3.0
2016-08-10T15:22:03.680Z
I have some entries where that field is being left unpopulated, so I was just trying to figure out what the expected behavior should be. What you are describing is what I would expect, but I wanted to be sure the "default" setting wasn't just for determining which option got the "selected" property when dynamically creating form select elements.
Philip Jones
CC BY-SA 3.0
2016-08-10T15:24:16.640Z
It's worth noting that any entries created *before* you created the dropdown field will have a `null` value until you actually assign a value to them, even if you set a default value.
Steve Rowling
CC BY-SA 4.0
2020-09-21T08:40:28.500Z
Is there a way to resave all entries so null will change to the default option?
Rinus
CC BY-SA 4.0
2020-11-10T09:32:44.560Z
@Rinus Yes, you can use the `resave` console command to so this. Details here: https://craftcms.com/docs/3.x/console-commands.html#resave
Steve Rowling
CC BY-SA 3.0
2016-08-10T15:07:45.373Z
2016-08-10T15:07:45.373Z
Steve Rowling
<p>I have a field of the dropdown fieldtype, let's call it <code>myDropdown</code>. </p>

<p><code>myDropdown</code> has a list of options, one of which has the "default" checkbox checked.</p>

<p>If I use a front-end form to submit a new entry, but the form does not contain the <code>myDropdown</code> field, will Craft insert the value designated as the the default into that field, or will it just leave the field empty?</p>

<drop-down><default>
Dropdown field 'default'
# Dropdown field 'default'

(Asked by: username_0 on 2016-08-10)

I have a field of the dropdown fieldtype, let's call it `myDropdown`.

`myDropdown` has a list of options, one of which has the "default" checkbox checked.

If I use a front-end form to submit a new entry, but the form does not contain the `myDropdown` field, will Craft insert the value designated as the the default into that field, or will it just leave the field empty?

**Tags:** drop-down, default


---

## 1 answers

### Answer by username_1 on 2016-08-10. Score: 4 | Accepted answer

Yes, if you don't include the dropdown field in your entry form, Craft will store the default value for that field, if one has been set. If no default value has been set, then the value will be `null`.

> **Comments:**
> **username_0**: I have some entries where that field is being left unpopulated, so I was just trying to figure out what the expected behavior should be. What you are describing is what I would expect, but I wanted to be sure the "default" setting wasn't just for determining which option got the "selected" property when dynamically creating form select elements.  
> **username_1**: It's worth noting that any entries created *before* you created the dropdown field will have a `null` value until you actually assign a value to them, even if you set a default value.  
> **username_2**: Is there a way to resave all entries so null will change to the default option?  
> **username_1**: @username_2 Yes, you can use the `resave` console command to so this. Details here: https://craftcms.com/docs/3.x/console-commands.html#resave  

---

