Query regarding Advance Randomization | XM Community
Skip to main content
Solved

Query regarding Advance Randomization

  • September 14, 2018
  • 8 replies
  • 4 views

Forum|alt.badge.img+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

Best answer by TomG

Put the text in a hidden span: ``` <span style="display:none">My text</span><img src="my_image_url" alt="my alt text"> ```
View original

8 replies

Priyanka_jain
Level 2 ●●
Forum|alt.badge.img+1
  • Level 2 ●●
  • 33 replies
  • September 14, 2018
We suggest you to first add only text and set randomization and once it is set, replace this with images.

Forum|alt.badge.img+4
  • Author
  • Level 1 ●
  • 18 replies
  • September 14, 2018
Thanks for suggestion Priyanka, but I don't think that it is going to work for tracker projects as we keep on receiving changes.

Priyanka_jain
Level 2 ●●
Forum|alt.badge.img+1
  • Level 2 ●●
  • 33 replies
  • September 14, 2018
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.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • September 14, 2018
Put the text in a hidden span: ``` <span style="display:none">My text</span><img src="my_image_url" alt="my alt text"> ```

Forum|alt.badge.img+4
  • Author
  • Level 1 ●
  • 18 replies
  • September 14, 2018
Yes, we can do this Priyanka, but is there any other suggestion?

  • 0 replies
  • September 14, 2018
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

Forum|alt.badge.img+4
  • Author
  • Level 1 ●
  • 18 replies
  • September 14, 2018
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?

  • 0 replies
  • September 14, 2018
> @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