It appears that values in templateselect fields are returning their index of the selected value, not the actual value itself.
In theme.yml:
services/fire-extinguishers.twig:
ticks:
type: repeater
label: "Tickmarks"
fields:
kind:
type: select
values: [blue, grey]
required: true
text:
type: text
required: true
So selecting blue in the backend will result in 0 when using:
{% for tick in record.templatefields.ticks %}
{{ tick.get('kind') }}
{% endfor %}
Selecting grey would also result in 1, rather than the value.
Object generated:

​1. Create a record and configure theme.yml with the above config.
0 and a 1 respectively as their valuesFound the problem with this, working on fix.
@rossriley figure it out?
@rossriley Any update on this (and by proxy #6336)
Yes, I need to pull my finger out.... PR coming in the next couple of hours.
Fixed in #6405
Most helpful comment
Found the problem with this, working on fix.