Query regarding Advance Randomization | XM Community
Skip to main content
Hi Everyone,



We have created a question with just the images as an option, but while applying the advance randomization we are unable to see any text as we implemented just the images. Later on, we have inserted <img> along with 'alt' tag to setup the images so that we can see the text in advance randomization but still the same problem persist.



We checked this with support team and they suggest to add the text with the same font color as that of theme background. We tried this, but while hovering the options, the back ground color changes which will create problem.



Is there any suggestion on this so that we can see the text in advance randomization?



Thanks,

Salim
We suggest you to first add only text and set randomization and once it is set, replace this with images.
Thanks for suggestion Priyanka, but I don't think that it is going to work for tracker projects as we keep on receiving changes.
It will work any additions you can simply add as text and set it as randomized also deletions get automatically unrandomized when you hide this.
Put the text in a hidden span:

```

<span style="display:none">My text</span><img src="my_image_url" alt="my alt text">

```
Yes, we can do this Priyanka, but is there any other suggestion?
Hello @salimlko ,



Use the following code to put image as the option using Rich content Editor, source view:



<figure>

<img src="img_URL" alt="Your text" />

<figcaption style="display:none">Option1</figcaption>

</figure>



Now you will see figcaption text in randomization
Hi @Shahi,



I have tried and noticed that we can exclude figure tag as well, only figcaption tag is also working at my side. Please let me know if I am right or missing anything here?
> @salimlko said:

> Hi @Shahi,

>

> I have tried and noticed that we can exclude figure tag as well, only figcaption tag is also working at my side. Please let me know if I am right or missing anything here?



If its working then you can use that but its good if you use figure tag because the figcaption element represents a caption or legend for a figure.

Leave a Reply