- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show hidden question value
- HDrew_
- Topic Author
- Offline
- New Member
Less
More
3 years 4 months ago #208817
by HDrew_
Show hidden question value was created by HDrew_
Hi,
I am looking to show the value of a hidden question within a survey. As we have a hidden equation which sets the age of a participant by also setting the value within a hidden question. What I am wanting to do though is then show the value that the hidden question has been set to in another question which is visible to participants.
The equation we are using is "{PROF001=if(PRNT005_SQ001.NAOK =="Y", "A1", if(PRNT005_SQ002.NAOK =="Y", "A2", if(PRNT005_SQ003.NAOK =="Y", "A3", if(PRNT005_SQ004.NAOK =="Y", "A4", if(PRNT005_SQ005.NAOK =="Y", "A5", if(PRNT005_SQ006.NAOK =="Y", "A6", if(PRNT005_SQ007.NAOK =="Y", "A7", if(PRNT005_SQ008.NAOK =="Y", "A8", if(PRNT005_SQ009.NAOK =="Y", "A9", if(PRNT005_SQ010.NAOK =="Y", "A10", if(PRNT005_SQ011.NAOK =="Y", "A11", if(PRNT005_SQ012.NAOK =="Y", "A12", if(PRNT005_SQ013.NAOK =="Y", "A13", if(PRNT005_SQ014.NAOK =="Y", "A14", if(PRNT005_SQ015.NAOK =="Y", "A15", if(PRNT005_SQ016.NAOK =="Y", "A16",""))))))))))))))))}"
PROF001 being the hidden question, PRNT005 being the question where they can select multiple ages. The equation is used to set the answer value to the lowest age selected. We then have another question PROF002 which has "PROF001.shown" within the actual question, however because PROF001 is being hidden so is the value of the answer within question PROF002.
Is there anything I can do so that the PROF001 question is hidden but we are can show the value of the answer in a later question?
Cheers
Harrison
Running - Version 3.22.28+200728
I am looking to show the value of a hidden question within a survey. As we have a hidden equation which sets the age of a participant by also setting the value within a hidden question. What I am wanting to do though is then show the value that the hidden question has been set to in another question which is visible to participants.
The equation we are using is "{PROF001=if(PRNT005_SQ001.NAOK =="Y", "A1", if(PRNT005_SQ002.NAOK =="Y", "A2", if(PRNT005_SQ003.NAOK =="Y", "A3", if(PRNT005_SQ004.NAOK =="Y", "A4", if(PRNT005_SQ005.NAOK =="Y", "A5", if(PRNT005_SQ006.NAOK =="Y", "A6", if(PRNT005_SQ007.NAOK =="Y", "A7", if(PRNT005_SQ008.NAOK =="Y", "A8", if(PRNT005_SQ009.NAOK =="Y", "A9", if(PRNT005_SQ010.NAOK =="Y", "A10", if(PRNT005_SQ011.NAOK =="Y", "A11", if(PRNT005_SQ012.NAOK =="Y", "A12", if(PRNT005_SQ013.NAOK =="Y", "A13", if(PRNT005_SQ014.NAOK =="Y", "A14", if(PRNT005_SQ015.NAOK =="Y", "A15", if(PRNT005_SQ016.NAOK =="Y", "A16",""))))))))))))))))}"
PROF001 being the hidden question, PRNT005 being the question where they can select multiple ages. The equation is used to set the answer value to the lowest age selected. We then have another question PROF002 which has "PROF001.shown" within the actual question, however because PROF001 is being hidden so is the value of the answer within question PROF002.
Is there anything I can do so that the PROF001 question is hidden but we are can show the value of the answer in a later question?
Cheers
Harrison
Running - Version 3.22.28+200728
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
3 years 4 months ago #208827
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 Show hidden question value
I'm not sure why that wouldn't work as is but you can try hiding PROF001 with a CSS class "hidden" instead of the question setting.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: HDrew_
The topic has been locked.
- HDrew_
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
3 years 4 months ago #208830
by HDrew_
Replied by HDrew_ on topic Show hidden question value
Thank you Tony, that's worked an absolute treat
The topic has been locked.