Welcome to the LimeSurvey Community Forum

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

Hide answer box in text question

  • CaptainPhenomenal
  • CaptainPhenomenal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 weeks ago #226938 by CaptainPhenomenal
Hide answer box in text question was created by CaptainPhenomenal
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)

Hello, is there a script that can be used to hide the answer in a short text question? 
I am using the question to hide an equation and I don't want my study participants to see it simply hiding the question by clicking the display option leads to issues for what I am trying to do.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 weeks ago #226939 by Joffm
Replied by Joffm on topic Hide answer box in text question
Hi,
at first:
Why didn't you answer the initial questions about your version of LimeSurvey, about the hosting and your used theme?

And what are you trying to do?
I am confused about 

to hide the answer in a short text question? 
I am using the question to hide an equation 

What exactly is your goal?
You want to display the question text but hide the answer container?
Why don't you use a question of type "text display" to display a text and a question of type "equation" to calcullate the equation. This you can hide.

Or don't you talk about an equation but of some kind of javascript?

Please, clarify!

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • CaptainPhenomenal
  • CaptainPhenomenal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 weeks ago #226963 by CaptainPhenomenal
Replied by CaptainPhenomenal on topic Hide answer box in text question
Sorry, we are using 3.28 on the Limesurvey cloud. I think we are using the default theme.

The reason we can't use a text display is that we are trying to put an equation in the default answer of a short text question. We would like to use the value of this equation in another question's default answer equation by referring to the short text question's code.

We have tried to hide the question by regular means in the question editing menu but it generates a NAN message in the second question. So we thought that hiding the question with a script could work.

Please Log in to join the conversation.

  • CaptainPhenomenal
  • CaptainPhenomenal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 weeks ago #226964 by CaptainPhenomenal
Replied by CaptainPhenomenal on topic Hide answer box in text question
Yes, please how do we hide a question type equation ?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 weeks ago - 3 years 2 weeks ago #226972 by Joffm
Replied by Joffm on topic Hide answer box in text question
A question of type "equation" you can hide by

1. "Always hide this question"  
or
2. css class "hidden" 

And:

We have tried to hide the question by regular means in the question editing menu but it generates a NAN message in the second question.

You should show this by attaching a lss export of these relevant questions. This way we can have a look at it.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 2 weeks ago by Joffm.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 weeks ago #226993 by holch
Replied by holch on topic Hide answer box in text question
I really can't see a good reason to "store" a code in the default answer of a hidden text field rather than in a hidden equation type question.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose