Discussions

Ask a Question
Back to All

Calling label from dropdown

Is there a way to call the label (and not the value) of a dropdown option?
Something like {{field:label}}?

Admin

You can have access to schema and options in templates (need to be activated in manifest).

To render the label of a dropdown , you can do it like this :
{{arrayindex ../Options.fields.Category.optionLabels @index }}

A full exemple is available here :
https://github.com/sachatrauwaen/OpenContent-Templates/tree/master/Catalog

Wow, yep, thanks!

(edited)

This comment has been deleted

ο»Ώ