Query regarding Advance Randomization | XM Community
Solved

Query regarding Advance Randomization

  • 14 September 2018
  • 8 replies
  • 71 views

Userlevel 1
Badge +4
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
icon

Best answer by TomG 14 September 2018, 07:54

View original

8 replies

Userlevel 1
Badge +1
We suggest you to first add only text and set randomization and once it is set, replace this with images.
Userlevel 1
Badge +4
Thanks for suggestion Priyanka, but I don't think that it is going to work for tracker projects as we keep on receiving changes.
Userlevel 1
Badge +1
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.
Userlevel 7
Badge +27
Put the text in a hidden span:
```
<span style="display:none">My text</span><img src="my_image_url" alt="my alt text">
```
Userlevel 1
Badge +4
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
Userlevel 1
Badge +4
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