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

More
3 years 7 months 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.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
3 years 7 months 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

Please Log in or Create an account to join the conversation.

More
3 years 7 months 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago - 3 years 7 months 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 :
{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: 3 years 7 months ago by mattheoh.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!