I have an Enum radio button list with a custom label via a simple macro, to provide a visualisation of the data being picked in the backoffice. However, when an option is picked, it actually saves the Macro markup as the 'label' value. I only want to use the Macro in the backoffice, I want the value saved to the XML to use the Enum label. Is this possible?
Thanks for the link Greystate, that explains things. I don't have to deal with commas, its essentially a CSS icon picker so I'll just go with CSV storage!
Custom Label with an Enum Picker
I have an Enum radio button list with a custom label via a simple macro, to provide a visualisation of the data being picked in the backoffice. However, when an option is picked, it actually saves the Macro markup as the 'label' value. I only want to use the Macro in the backoffice, I want the value saved to the XML to use the Enum label. Is this possible?
Hi Barry,
We discussed this at some point (here: https://github.com/uComponents/nuPickers/issues/89) and decided it was a feature rather than a bug :-)
Which Save Format are you using, and are you not getting the keys at all?
/Chriztian
Thanks for the link Greystate, that explains things. I don't have to deal with commas, its essentially a CSS icon picker so I'll just go with CSV storage!
As it happens, CSV only stores the picked keys, not the labels as set on the Enum. Shame!
is working on a reply...