<p>It turns out this was happening because i'd set some values for my content and then changed the structure of the field. I just reset the values for my content and all was well.</p>

CC BY-SA 3.0
2016-12-17T22:19:23.190Z
2016-12-17T22:19:23.190Z
mrtobo
<p><strong>Example</strong></p>

<p>Let <code>entry.dropdownOption.label</code> = "option with spaces"</p>

<pre><code>{% for entry in entry.dropdown %}
    {{ entry.dropdownOption.label }}
{% endfor %}
</code></pre>

<p>renders as in my template: "optionwithspaces"</p>

<p>How can I instead get it to render as "option with spaces"?</p>

CC BY-SA 3.0
2016-12-17T20:47:10.983Z
I must be doing something wrong... The .value outputs camelCase as well.
mrtobo
<matrix><drop-down>
How can I get spaces to render in my dropdown option label template call?
# How can I get spaces to render in my dropdown option label template call?

(Asked by: username_0 on 2016-12-17)

Example
Let entry.dropdownOption.label = "option with spaces"
{% for entry in entry.dropdown %}
    {{ entry.dropdownOption.label }}
{% endfor %}

renders as in my template: "optionwithspaces"
How can I instead get it to render as "option with spaces"?

**Tags:** matrix, drop-down

> **Comments:**
> **username_0**: I must be doing something wrong... The .value outputs camelCase as well.  

---

## 1 answers

### Answer by username_0 on 2016-12-17. Score: 1 | Accepted answer

It turns out this was happening because i'd set some values for my content and then changed the structure of the field. I just reset the values for my content and all was well.


---

