Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Barry Fogarty 493 posts 1129 karma points
    Jan 24, 2018 @ 16:55
    Barry Fogarty
    0

    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?

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Jan 24, 2018 @ 22:12
    Chriztian Steinmeier
    100

    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

  • Barry Fogarty 493 posts 1129 karma points
    Jan 26, 2018 @ 12:31
    Barry Fogarty
    1

    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!

  • Barry Fogarty 493 posts 1129 karma points
    Jan 26, 2018 @ 17:32
    Barry Fogarty
    0

    As it happens, CSV only stores the picked keys, not the labels as set on the Enum. Shame!

Please Sign in or register to post replies

Write your reply to:

Draft