Alwasys hidden vs relevance

More
2 years 11 months ago - 2 years 11 months ago #115431 by fransmarcelissen
fransmarcelissen created the topic: Alwasys hidden vs relevance
I noticed a small but important difference between setting the relevance of a question to 0 and setting a question to "always hidden". Maybe this is known to everyone, in that case sorry to bother you.

If a question has relevance 0, it is skipped and not set. That means that it also does not have the default value. If it has relevance <>0, but it is "always hidden", it is invisible, but evaluated, and has the default value. This especially very useful with input parameters.

My question is: is this difference intended?
Is there a way to set a question to "always hidden" using em (other than setting the relevance to 0)? I know this can be done with javascript, does anyone have an example of this?

Thanks
Frans
Last Edit: 2 years 11 months ago by fransmarcelissen.
The following user(s) said Thank You: dwehrmann

Please Log in to join the conversation.

More
2 years 11 months ago #115657 by dwehrmann
dwehrmann replied the topic: Alwasys hidden vs relevance
Interesting find, thanks for pointing this out, fransmarceslissen!

Please Log in to join the conversation.

More
2 years 11 months ago #115710 by Mazi
Mazi replied the topic: Alwasys hidden vs relevance

fransmarcelissen wrote: My question is: is this difference intended?
Is there a way to set a question to "always hidden" using em (other than setting the relevance to 0)? I know this can be done with javascript, does anyone have an example of this?

I assume that this is intended. If a relevance validates to FALSE, the question is left out and thus no data is stored because the conditions set are not met.
If I remember correctly the "always hide this question" setting worked similar when it was introduced but that was changed due to the advantages you mentioned (I'd like to add "Passing information by URL into hidden questions." as another benefit).

What do you plan by set a question to "always hidden" using em ? What's the goal?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
2 years 10 months ago #115850 by fransmarcelissen
fransmarcelissen replied the topic: Alwasys hidden vs relevance
I have a survey where I want the user to fill in a question just once, without the option of changing the answer. So I want to hide the question if it has a value. This can not be done by setting the relevance.
In general, this is not a big issue. And I assume that "always hidden" means always hidden.....
Frans

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!