webhelpus
Total posts: 8
01 Jun 2015 06:31

I'd like the Multiselect (or the select) field to display an image rather then text when a choice is made. Is that possible.

Last Modified: 11 Jun 2015


Sergey
Total posts: 13,748
01 Jun 2015 13:00

Yes. As values enter html

2015-06-01_18-50-25


webhelpus
Total posts: 8
02 Jun 2015 07:44

Awesome. You rock.


webhelpus
Total posts: 8
09 Jun 2015 23:57

I tried this on select and multi-select and neither of them worked. I've done several versions of the link but it didn't even show up. Not a missing image icon, just nothing.


Sergey
Total posts: 13,748
10 Jun 2015 11:17

Give me access to your backend and tell what tpe name and what field name. And link to that section on frontend. I'll check it.


webhelpus
Total posts: 8
10 Jun 2015 19:42

Not sure if I did that right, but there should be a post above this one hidden that you can see.


Sergey
Total posts: 13,748
11 Jun 2015 04:30

I tested and everything works just fine.

The problem was that you used multiselect field and in tha values you had no text, just pidtures.

<img src="/images/Compat_icon_2_5.png" />
<img src="/images/Compat_icon_3_x.png" />

In this case it cannot me shown in the <option> of the <select> element. It is limitation og HTML itself. Checkbox will be more apropriate choice here. Or add some text.

Joomla 2.5 <img src="/images/Compat_icon_2_5.png" />
Joomla 3.x <img src="/images/Compat_icon_3_x.png" />
Powered by Cobalt