Skip to content

Commit 7d20d7a

Browse files
committed
{item} in the multiselect loop always returns value
1 parent d4a5f44 commit 7d20d7a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/fieldtypes/checkboxes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ Two
6363
Three
6464
```
6565

66-
By default, `{item}` will render the item's label To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
66+
By default, `{item}` will render the item's value. To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
6767

6868
{field_name}
69-
Label: {item}<br> {!-- 1 --}
69+
Value: {item}<br> {!-- 1 --}
7070
Value: {item:value}<br> {!-- 1 --}
7171
Label: {item:label}<br> {!-- One --}
7272
{/field_name}

docs/fieldtypes/multiselect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ Two
6363
Three
6464
```
6565

66-
By default, `{item}` will render the item's label. To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
66+
By default, `{item}` will render the item's value. To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
6767

6868
{field_name}
69-
Label: {item}<br> {!-- One --}
69+
Value: {item}<br> {!-- One --}
7070
Value: {item:value}<br> {!-- 1 --}
7171
Label: {item:label}<br> {!-- One --}
7272
{/field_name}

docs/fieldtypes/selectable-buttons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ When allowing multiple items to be selected, Selectable Buttons will usually be
6060
{item}<br>
6161
{/field_name}
6262

63-
By default, `{item}` will render the item's label. To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
63+
By default, `{item}` will render the item's value. To access the value and label separately, simply add a `:value` or `:label` modifier to the `{item}` variable:
6464

6565
{field_name}
66-
Label: {item}<br>
66+
Value: {item}<br>
6767
Value: {item:value}<br>
6868
Label: {item:label}<br>
6969
{/field_name}

0 commit comments

Comments
 (0)