I would like to use the iconpicker in a form to pick the icon for a user. In the (rails) backend, I need the character, though, instead of the css class.
When submitting the form, the icon gets delivered as the css-class “myicon-typical”, instead of the character. Is it possible to configure the iconpicker to send the character instead? Am I going at this from the wrong angle?
As a workaround, I have defined a matching between the class name and the unicode value in the backend, but I would still be interested if iconpicker can be modified to do this.
I would like to use the iconpicker in a form to pick the icon for a user. In the (rails) backend, I need the character, though, instead of the css class.
My current iconpicker:
A typical icon:
When submitting the form, the icon gets delivered as the css-class “myicon-typical”, instead of the character. Is it possible to configure the iconpicker to send the character instead? Am I going at this from the wrong angle?