Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
great idea; surprised the font icon module didnt do this from the start. i have it showing icons for the field but nothing gets saved when i submit form.
Comments
Comment #2
K3vin_nl CreditAttribution: K3vin_nl commentedThere are some drawbacks to this solution. See issue #2370899.
Basicly what my module does is hide the original select element and change it (invisibly) when an icon is clicked.
You can show the select again by making it visible in webinspector, or by modifying my CSS. If you make it visible, you should be able to see it change if you click an icon.
It sounds to me like a javascript error is causing this not to work. Do you see an error in the javascript console?
Comment #3
mmelkhatib CreditAttribution: mmelkhatib as a volunteer commentedI can verify that I am getting the same error too. The console error I am getting is
Uncaught Error: Syntax error, unrecognized expression: [data-select-name='quick_fact_icons_iconmoon|icons-qf-megaphone'
Could this have something to do with the Jquery Update module? We are currently using JQuery 10 and the Adminimal theme. If you need me to volunteer more information let me know.
Otherwise, great module!
Comment #4
K3vin_nl CreditAttribution: K3vin_nl commentedMight very well be that a newer version of jQuery causes some issues. I'll test and get back to you!
Comment #6
K3vin_nl CreditAttribution: K3vin_nl as a volunteer commentedI have just released a new version and tested it in jQuery 1.10 as well. Should work now.
Comment #7
K3vin_nl CreditAttribution: K3vin_nl as a volunteer commentedComment #8
K3vin_nl CreditAttribution: K3vin_nl as a volunteer commented