Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Picture-URL depending on attribute

  • Jakaja
  • Jakaja's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 days 5 hours ago #271244 by Jakaja
Picture-URL depending on attribute was created by Jakaja
Your LimeSurvey version: Lime Survey Community Edition Version 6.15.2+250628

==================

Is is possible to insert an attribute directly into an image URL to show specific pictures to different participants?

Like this:

<p><img alt="" src="{ATTRIBUTE_1}" /></p>

If i try that LimeSurvey kicks out the attribute:

<p><img alt="" src="" /></p>
{ATTRIBUTE_1}" />

Am I overlooking something simple, or is this simply not possible?

I have added participants with ATTRIBUTE_1 to the survey.

Thank you very much for your time.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 days 4 hours ago #271246 by Joffm
Replied by Joffm on topic Picture-URL depending on attribute
Hi,
I do not see any issue here, but you have to use {TOKEN:ATTRIBUTE_1}.


And even with {ATTRIBUTE_1} I do not see that the expression is removed from the HTML tag.

Well, you did not answer the question where your installation is hosted.

If there are further problems, please send the lss export of this relevant question!

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Jakaja
  • Jakaja's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 days 2 hours ago #271247 by Jakaja
Replied by Jakaja on topic Picture-URL depending on attribute
Thank you very much for your answer. The installation is hosted by my employer.

Adding TOKEN does not help.

I have attached the lss-file. It only shows:

<p><img alt="" src="" /></p>
{TOKEN:ATTRIBUTE_1}" />

because as soon as I save the question and click away (e.g. to settings) it changes to the text above.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 days 1 hour ago #271251 by Joffm
Replied by Joffm on topic Picture-URL depending on attribute
Then ask the admin about the setting of the XSS filter.

I suppose it's set to ON.

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose