Displaying Image in Option Set

Hi everyone! I’m trying to display images next the items in my option set listing. I was able to add the image by modifying the attribute.

However, when the options are displayed, the images dont who; The OS displays a “link” to the image (as opposed to displaying the image).

The objective is to allow users to select from a list of options. However, I’d like for each item on the list to have a representative image next to it. I’ll appreciate your input!

Do you want to show images inside the dropdown?

Yes…that’s what I’m trying to do. Thought, display it elsewhere in the app after its stored into the database. Thanks!

1 Like

Unfortunately, it is not possible with the default dropdown element.
‌But you can easily create your own dropdown, it can be a reusable element.

Ok. Would the user be able to select from it as an input? I was trying to avoid creating a separate database for it…what’s why I was trying to use the option set.

You don’t need to create a new data type; the data is ok.

Ok thanks. How do I do it?

Yes, you have full control over it, you can specify what to display and get user choice

Honestly, it’s a little hard to explain.
To start, create a reusable element and set its data type to option set.
Then you can create the dropdown with the repeating button and group.
Once selected, set the item to reusable element, so that it is available on the page.

Ok thanks! I’ll give it a shot and see how it goes.

1 Like

It is easier to do than to explain. :sweat_smile:

If you have a problem, I am here to help.

Yes I figured. Lol! So, I’ll give it a shot. If I have any major issues, I’ll circle back. I just thought it was doable with the option set (trying to find a shortcut. Lol!).

1 Like

The problem is not with the option set, the image cannot be shown in dropdown.

1 Like

One thing to mention here is, Having images in Option Set really make your site bulky, as each time a site load all Option Set get downloaded.


1 Like

This is a very important consideration; thanks for pointing it out! I’ll just try to create a custom dropdown and try to show the image.

This topic was automatically closed after 70 days. New replies are no longer allowed.