- Posts: 77
- Thank you received: 6
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
- Topic Author
- Offline
- Senior Member
Less
More
8 years 2 weeks ago #134529
by mattheoh
"false" input radio question (answer locked according previous question) was created 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.
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.
- first
- Offline
- Elite Member
Less
More
- Posts: 227
- Thank you received: 36
8 years 2 weeks ago #134534
by first
Survey Designer and Programmer
Replied by first on topic "false" input radio question (answer locked according previous question)
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 2 weeks ago #134562
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic "false" input radio question (answer locked according previous question)
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?
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
- Thank you received: 6
8 years 2 weeks ago - 8 years 2 weeks ago #134594
by mattheoh
Replied by mattheoh on topic "false" input radio question (answer locked according previous question)
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 :
and it feets perfectly to my needs.
I will just have to change the calculation of my equation questions.
Thanks again.
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.