Welcome to the LimeSurvey Community Forum

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

Should a hidden question seen as answered? Prefilled answer behaviour

  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 5 months ago - 9 years 5 months ago #113531 by jelo
A "Multiple short text" question is used as an array filter via default answers filled via Expression Manager from previous answers. When the "Multiple short text" question is hidden via the option, the filter function is not working. My last impression was that "Hidden = Not answered" is not longer the default behaviour?

If you switch back and the change theses answers then default answers won't change.
I think this behaviour is intended, since once the question is shown and the prefilled answers are confirmed the default answers are no longer needed.

It would be interesting if questions could be made unanswered when skipping back and fourth through the survey. Any hint where to look?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 9 years 5 months ago by jelo.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago - 9 years 5 months ago #113548 by tpartner
You may be able to reset the answers with the EM Assignment Operator in an equation question. The equation question should be fired every time its page is visited.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 5 months ago by tpartner.
The topic has been locked.
  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 4 months ago #113655 by jelo

tpartner wrote: You may be able to reset the answers with the EM Assignment Operator in an equation question.

Mhm. Looks interesting.
But how should that work? Something like QCODE=NULL? Or how is a reset of a question assigned via EM?

Would be a great way to allow users to skip back and forth without preventing the workarounds.
I found mostly warnings in the manual about the assignment operator ;-)

Thanks for the hint. I will do a bit of trial and error.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113658 by tpartner
I'm not sure whether you can or need to set it to NULL. I was suggesting resetting it to your default answer.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 4 months ago #113666 by jelo

tpartner wrote: I was suggesting resetting it to your default answer.

Mhm. Monday seems to be a bad day to learn something new. You're right. NULL cannot be the correct way to reset the question to the default values. But what is the correct constant name to assign the default values again (like the question wasn't answered before)? Still haven't found a clue what to assign?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 months ago - 9 years 3 months ago #115445 by jelo
Another try to get the clue.

1. Question
Arrayquestion aq01

2.) Question
Multiple short text question "aq02"
The predefault answers are set with {if (aq01_1.NAOK >= "4" "Over4","")}

3.) Question
Arrayquestion aq03
Array filter: aq02

This is working fine as long as you don't skip back and fourth.
An answer once set to "Over" never changes back to unanswered. Even if the answer in aq01 is under 4.

I wonder how I could reset aq02 when someone is back on aq01.

Any idea how to use EM, Assignment Operator
manual.limesurvey.org/Expression_Manager...t_Operator_.28.3D.29
to reset answer in question aq02?

To sum it up: How to clear and reassign default answers to a question, where default answers are based on answers of a question before.

BTW: What is the situation with the <= < > = with the default answer field?
manual.limesurvey.org/Expression_Manager#HTML_editor_issue

When using >= in the default answer field, you sometimes cannot get the default answer fields anymore.
The QA is showing errors "& gt ; = & quot ; 4 & quot ; & quot ; Over4 & quot ; , & quot ; & quot ; " .
But you won't see the fields to correct the errors anymore. Build Version 2.05+ Build 141003

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 9 years 3 months ago by jelo.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 3 months ago #115459 by Mazi

jelo wrote: BTW: What is the situation with the <= < > = with the default answer field?
manual.limesurvey.org/Expression_Manager#HTML_editor_issue

When using >= in the default answer field, you sometimes cannot get the default answer fields anymore.
The QA is showing errors "& gt ; = & quot ; 4 & quot ; & quot ; Over4 & quot ; , & quot ; & quot ; " .
But you won't see the fields to correct the errors anymore. Build Version 2.05+ Build 141003

Try using "gt" and "lt".

This was fixed for other parts so please test if you can still reproduce this at the demo.
If so .-> bug report.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 months ago #115475 by jelo
Strange behavior. Today I was able to get into the default answers again.
"This issue is fixed after 2.06 build 140803" is displayed at that HTML_editor_issue.
What version is the demo? Was the fix back-ported to 2.05+? I am getting offtopic.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 3 months ago #115477 by Mazi
The demo runs the latest stable (=2.05) version.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115487 by DenisChenu

jelo wrote: Strange behavior. Today I was able to get into the default answers again.
"This issue is fixed after 2.06 build 140803" is displayed at that HTML_editor_issue.
What version is the demo? Was the fix back-ported to 2.05+? I am getting offtopic.

Maybe i make error when updating the manual ... have to search on github and mantis .... :huh:

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • jelo
  • jelo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 months ago #115488 by jelo

Mazi wrote: The demo runs the latest stable (=2.05) version.

Thanks, I will test and submit a bugreport if I can reproduce the problems.

Since the whole filtering is not working when hiding the question, it seems to be time for a break.

Is there a developer note or a thread where the default behavior of LS in terms of hidden questions is documented?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 3 months ago #115503 by Mazi

jelo wrote: Is there a developer note or a thread where the default behavior of LS in terms of hidden questions is documented?

I don't think so, but there are several forum threads dealing with this.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose