# Key/labels for Multiple Choice fields

**URL:** <https://forums.knack.com/t/key-labels-for-multiple-choice-fields/5586>\
**Category:** Feature Requests\
**Created:** [February 18, 2015, 5:58pm UTC](https://forums.knack.com/t/key-labels-for-multiple-choice-fields/5586 "2015-02-18T17:58:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro93092](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alessandro93092](https://forums.knack.com/u/Alessandro93092)\
**Post date:** [February 18, 2015, 5:58pm UTC](https://forums.knack.com/t/key-labels-for-multiple-choice-fields/5586/1 "2015-02-18T17:58:00Z")

</div>

In multiple cases I had the need to expose a longer descriptive text in the checkbox/radio label instead of the actual value.

For example, suppose a "Shipping" field that has the options "normal" and "fast". I want to have show longer descriptive texts such as "Normal (3-4 days)" and "Fast (24 hours) +$40".

Currently I'm performing a label change via JavaScript but it's annoying also because the HTML markup generated by Knack is not very nice to work with in this case:

\<label class="option"\>

\<input type="checkbox" name="field\_16" value="Normal"\>

Normal

\</label\>

As you see, the label text is not enclosed in any \<span\> tag so in order to replace it with jQuery you need something like this:

$('#kn-input-field\_16 label.option').contents()

.filter(function() { return this.nodeType === 3; }).remove();

$('#kn-input-field\_16 label.option:eq(0)').append(" Normal (bla bla)");

$('#kn-input-field\_16 label.option:eq(1)').append(" Fast (bla bla)");

which is not very nice.

I suggest to add these key/value dictionaries at form level, because one would need different descriptive text for each context, or even different languages like in my case.

---

<div class="post-metadata">

**Author:** ![Jessie](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/jessie/32/5_2.png) [@Jessie](https://forums.knack.com/u/Jessie)\
**Post date:** [July 15, 2021, 8:03pm UTC](https://forums.knack.com/t/key-labels-for-multiple-choice-fields/5586/2 "2021-07-15T20:03:18Z")

</div>

Archived on July 15, 2021, 8:03pm UTC


