Welcome to the LimeSurvey Community Forum

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

"false" input radio question (answer locked according previous question)

  • mattheoh
  • mattheoh's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 weeks ago #134529 by mattheoh
Hi, I m searching an answer from a few hours to my problem...

I have 2 array questions (numeric value) , let's say Q1 and Q2

I have a Q3 question wich is radio button type (two answers A1 and A2)
I d like to check automatically :
- A1 if (({Q1.NAOK}/{Q2.NAOK}) < 0.1)
- A2 if (({Q1.NAOK}/{Q2.NAOK}) > 0.1)

I m going to try to do it following this workaround.
manual.limesurvey.org/Workarounds:_Manip..._.28default_value.29

My problem is I d like the answer to be locked (the user can't modify it - indeed, I use this answer to calculate some equation questions)
Just beginning with limesurvey and maybe my reflexion is not good.

Thanks a lot for your help.
The topic has been locked.
More
8 years 2 weeks ago #134534 by first
You can punch(set) an answer option with EM but you would need some javascirpt to disable it.

BTW, the questions punched via EM can be made hidden from questions setting and can be used later in survey for calculations.

Survey Designer and Programmer
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134562 by tpartner
Be careful when disabling radio inputs - that may prevent the data from being recorded.

Why not load the value into a hidden equation question instead of using radios?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • mattheoh
  • mattheoh's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #134594 by mattheoh
Thanks for your both answer...
You're right it wasn't a good solution, and not useful...

I just add in my question a condition to display a text, as this :
Code:
{if(CH3Q4.NAOK == 'O', "<p>my text for Yes</p>", "")}
{if(CH3Q4.NAOK == 'O', "<p>my text for No</p>", "")}

and it feets perfectly to my needs.

I will just have to change the calculation of my equation questions.
Thanks again.
Last edit: 8 years 2 weeks ago by mattheoh.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose