2

I want to make my site more user friendly and so I would like to replace select list with an image list. Is it possible to display ordinary select list as an image list? Is there a module that would allow me to do so or do I need a custom code for this fetaure?

1

2 Answers 2

5

There is in fact a module that can do this. It's the Select with style module.

1
  • doesn't work in chrome though.
    – DrCord
    Commented Jul 27, 2015 at 22:05
0

You'll have to use some jQuery help for displaying images as options in a select form element. Check out this collection of plugins.

You may also have to implement your own Form API element type using hook_element_info() to output the markup that your chosen jQuery plugin needs.

Lastly, you haven't said which select list you would like to change, but if it's an existing form, you might end up implementing hook_form_alter().

1
  • thank you, it seems there is no module to accomplish this. I am not a programmer so I think my solution would be to go for a list with radiobuttons and add images using css.
    – loparr
    Commented Jan 5, 2013 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.