Skip to main content
Level 3
Mar 22, 2022 10:46 AM UTC
Question

how to get enum value internal name in javascript template

this has ben bugging me a lot lately. When using an enum in for instance the recipient table in a template you get the label of the enum value, but for programmatic reasons I want to access the (acually stored) internal name of the value, and not the "translation". I thougt it was some .toString() or similar to get it but I can not find any documentation or way around other that loading the whole enumeration and translating it back...

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

RBE_jonasAuthor
Level 3
Mar 22, 2022 10:50 AM UTC

I have tried to load the corresponding field as additional personalization data in the delivery template, but it still apears with the label of the value.

Translate