Welcome to the LimeSurvey Community Forum

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

Text display not dynamically changing

  • thefan
  • thefan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #163553 by thefan
Hello,

I'm trying to make a text display that dynamically show answer from previous equation type question.
The equation type questions itself is a calculation of previous single choice type question.

Example:

Question1 (single choice): select a number from choices below.
  • A1 = 5
  • A2 = 10

Question2 (equation): {Question1.shown*2}

Question3 (text display): This is your Question1 answer times 2: {Question2}

The problem is, the text display won't update after the user answer Question1 unless I add another Question4 and modify Question3 like so:

Question4 (long free text): Type anything

Question3 (text display): This is your Question1 answer times 2: {Question2} and this is Question4 value: {Question4}

The text display itself won't update after the user answer Question1. But it will update after the user answer the Question4.

This is only happens in LimeSurvey 3.

I attached an example survey.
The topic has been locked.
More
6 years 2 months ago #163641 by jelo
Replied by jelo on topic Text display not dynamically changing
Is the attached file the correct one? Perhaps I don't understand your post.
The survey structure seems to differ.


What exact version of LS 3 is used?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • thefan
  • thefan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago - 6 years 2 months ago #163645 by thefan
Replied by thefan on topic Text display not dynamically changing
Yes, the attached file is different than the one I wrote in question, sorry for that (I don't know how to explain).

Here I attached the correct one:

File Attachment:

File Name: limesurvey...6946.lss
File Size:15 KB


This is what I meant:

Picture 1:
A. The user answered 5 as Question1.
B. Question2 becomes 10. But in Question3, the {Question2} field is still 0.


Picture 2:
A. The user answered Question4. The Question3 display the {Question4} field correctly.
B. The {Question2} field in Question3 also changed to 10.


Somehow, the {Question2} field in Question3 only updates after the user answer Question4. If I remove the Question4 and the {Question4} field in Question3, the {Question2} field in Question3 will never updates.

I'm using version 3.2.0+180206, but I encountered this since 3.0.0. This doesn't happens in 2.73.0.
Last edit: 6 years 2 months ago by thefan.
The topic has been locked.
More
6 years 2 months ago #163647 by jelo
Replied by jelo on topic Text display not dynamically changing
Ok. That issue can be seen in the first survey too.
The reference to the result of the equation-question is empty till another update is triggered.
I was able to reproduce this issue on demo.limesurvey.org (3.1.1).
Do you want to open a bugreport?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • thefan
  • thefan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #163650 by thefan
Replied by thefan on topic Text display not dynamically changing
Thank you! That is exactly what I meant.

I don't know how to explain a bug report.
That is why I posted here so maybe someone can make a bug report with better explanation than me.
The topic has been locked.
More
6 years 2 months ago #163745 by jelo
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose