<p>Ok, just figured it out. Apparently, when I changed the value of the fields in the settings I had to re-save all entries that used that field. And not just re-save them, but reset the value in the field as well, because it had lost it's checked value when I opened the entry up to edit it. </p>

<p>I see now the warning in the field settings I had previously overlooked, "Changing this may result in data loss."</p>

CC BY-SA 3.0
2014-11-12T23:38:16.983Z
2014-11-12T23:38:16.983Z
Dave Joyce
<p>Seems like it should be simple but it's not working for me.</p>

<pre><code>{% for option in entry.contributionType %}
     &lt;li&gt; {{ option.value }} &lt;/li&gt;
{% endfor %}
</code></pre>

<p>This code outputs the option's label instead of  the value. I feel like I'm going crazy.</p>

CC BY-SA 3.0
2014-11-12T23:36:45.020Z
That should work. Have you tried `{{ option.label }}:{{ option.value }}`?
Douglas McDonald
<templating><field>
How do you output the value of a checkbox item?
# How do you output the value of a checkbox item?

(Asked by: username_0 on 2014-11-12)

Seems like it should be simple but it's not working for me.
{% for option in entry.contributionType %}
      {{ option.value }} 
{% endfor %}

This code outputs the option's label instead of  the value. I feel like I'm going crazy.

**Tags:** templating, field

> **Comments:**
> **username_1**: That should work. Have you tried `{{ option.label }}:{{ option.value }}`?  

---

## 1 answers

### Answer by username_0 on 2014-11-12. Score: 2 | Accepted answer

Ok, just figured it out. Apparently, when I changed the value of the fields in the settings I had to re-save all entries that used that field. And not just re-save them, but reset the value in the field as well, because it had lost it's checked value when I opened the entry up to edit it.

I see now the warning in the field settings I had previously overlooked, "Changing this may result in data loss."


---

