Welcome to the LimeSurvey Community Forum

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

How do I store randomized "display text" question with equation question?

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 weeks ago #243885 by lecebufal
Your LimeSurvey version: LimeSurvey Cloud Versión 5.6.23

==================
Hello:

I have created several "display text" questions, I have used the same word on the field Random Presentation Section Name. And then I used the formula: (sum(G04Q15.relevanceStatus, G04Q16.relevanceStatus, G04Q48.relevanceStatus, G00Q49.relevanceStatus, G00Q50.relevanceStatus, G00Q51.relevanceStatus, G00Q52.relevanceStatus, G00Q53.relevanceStatus, G05Q49.relevanceStatus, G05Q50.relevanceStatus, G05Q51.relevanceStatus) LT 1)
in the condition field to randomize them and show just one of them (in this case, I have 12 questions, and there are just 11 "*.relevanceStatus").

How I store the shown "display text" question as a response of an equation question?

Thanks on advance!!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 3 weeks ago #243886 by Joffm
Why do you ask the same question again (you just copied it into this other section)

@jelo already wrote that this order is not stored in the database.
To store it you may use the property ".qseq". In a question of type "equation" "list" this property of all "text display" questions.

In my opinion it seems to be better to create a random number (1-12) and display only the respective text by relevance equation.
Or you taylor the text according to the random number in only ONE text display.
So you know by the random number which text was displayed.

Joffm 

Further questions?
Send the lss export.

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

Please Log in to join the conversation.

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 weeks ago - 10 months 3 weeks ago #243887 by lecebufal
Thanks for answering Joffm

I need to show one of 12 images to the participant and store which image was shown on the database.

Could you please tell me how would be the simplest form to do that? And explain me a little bit more in detail how to do it :)
Last edit: 10 months 3 weeks ago by lecebufal.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 3 weeks ago #243888 by Joffm
Create a random number in an equation (let's call it eq1).
​​​​​​
If you rename your images to something like
image_1.jpg, image_2.jpg,..., image_12.jpg
you can display with
<img src=".../.../image_{eq1}.jpg">

Both is explained many times here in the forum.

Joffm 

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

Please Log in to join the conversation.

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 weeks ago #243889 by lecebufal
I think is this one:

forums.limesurvey.org/forum/can-i-do-thi...it-into-the-question

Thank you very much Joffm!! \o/ \o/ \o/

Please Log in to join the conversation.

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 2 weeks ago - 10 months 2 weeks ago #244069 by lecebufal
Hi again Joffm!

When I write the following, everything is ok:

<img src="/upload/surveys/.../images/Pregunta_1.png" />,

but when I reeplace by <img src="/upload/surveys/.../images/Pregunta_{eq1}.png" />
It only shows a little icone, but not the complete image.

Could you please tell me whats happening? How to solve it?
Last edit: 10 months 2 weeks ago by lecebufal.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 2 weeks ago #244070 by Joffm
How can we know?
Send the lss export.

Joffm 

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

Please Log in to join the conversation.

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 2 weeks ago #244071 by lecebufal

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 2 weeks ago #244072 by Joffm
Hi, 
1. you should use this construct to create the random number
{if(is_empty(Q00),rand(1,16),Q00)}
This is to avoid a change of the number if the respondent goes back or there are other clicks in this group.
It means: IF the random number is still empty, THEN create one, OTHERWISE let it as it is.

2. I am not really sure that you want to display the image in a question od type "equation". What should be the reason?

3. The creation of the random number has to be in a different group / page.

Joffm

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

Please Log in to join the conversation.

  • lecebufal
  • lecebufal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 2 weeks ago #244074 by lecebufal
Hi again Joffm!

Super thaaaaaaaaaaankssssss!!!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose