- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Deleted answers when update survey with conditional hidden Questions/Groups.
- adminpickering
- Topic Author
- Offline
- New Member
Less
More
1 year 10 months ago #228868
by adminpickering
Deleted answers when update survey with conditional hidden Questions/Groups. was created by adminpickering
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.3.16
Own server or LimeSurvey hosting:limesurvey.net
Survey theme/template:Default
==================
Hello, not sure if it's issue or default behavior.
When reopen link with a survey ("Allow multiple responses or update responses with one access code: " is enabled. ),
then the previous answers from currently hidden parts (conditionally hidden G01Q022 ) are deleted.
Don't need to send/confirm anything.
Maybe I'm hiding Questions/Groups in wrong way.
Question summary G01Q022 (ID: 231) Question group: (ID:1)Code: G01Q022 : (Optional question)Question: Help: Type: Long free text (Type: T)Mandatory: NoEncrypted: NoCondition: (( G01Q02.NAOK == "AO01"))Group relevance:1
Your LimeSurvey version: Version 5.3.16
Own server or LimeSurvey hosting:limesurvey.net
Survey theme/template:Default
==================
Hello, not sure if it's issue or default behavior.
When reopen link with a survey ("Allow multiple responses or update responses with one access code: " is enabled. ),
then the previous answers from currently hidden parts (conditionally hidden G01Q022 ) are deleted.
Don't need to send/confirm anything.
Maybe I'm hiding Questions/Groups in wrong way.
Question summary G01Q022 (ID: 231) Question group: (ID:1)Code: G01Q022 : (Optional question)Question: Help: Type: Long free text (Type: T)Mandatory: NoEncrypted: NoCondition: (( G01Q02.NAOK == "AO01"))Group relevance:1
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
1 year 10 months ago #228911
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 Deleted answers when update survey with conditional hidden Questions/Groups.
It seems normal to me. If a question is hidden via relevance/conditions, no answer is recorded when the form is submitted.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- adminpickering
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
1 year 9 months ago #228962
by adminpickering
Replied by adminpickering on topic Deleted answers when update survey with conditional hidden Questions/Groups.
Thanks for reply,
i meant it wipe previously (hidden) recorded data.
The idea was to share the same survey with multiple users(for any reason) and show them content based on conditions.
i meant it wipe previously (hidden) recorded data.
The idea was to share the same survey with multiple users(for any reason) and show them content based on conditions.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
1 year 9 months ago #228970
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 Deleted answers when update survey with conditional hidden Questions/Groups.
Yes, that's why I said "when the form is submitted". The previously recorded data will be removed if someone revisits the survey and submits a page with a question now hidden via relevance.
A workaround (involving more development) may be to add an attribute to the <body> element to control the visibility of questions via CSS. I suspect you are using a question for the hide/show conditions so that could be accessed in the survey theme TWIG files with the processString() function.
A workaround (involving more development) may be to add an attribute to the <body> element to control the visibility of questions via CSS. I suspect you are using a question for the hide/show conditions so that could be accessed in the survey theme TWIG files with the processString() function.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- adminpickering
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
1 year 9 months ago - 1 year 9 months ago #229001
by adminpickering
Replied by adminpickering on topic Deleted answers when update survey with conditional hidden Questions/Groups.
Got ansver from survey-consulting.com.
in config-defaults.php change 'deletenonvalues' value from 1 to 0.
in config-defaults.php change 'deletenonvalues' value from 1 to 0.
Last edit: 1 year 9 months ago by adminpickering.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
1 year 9 months ago - 1 year 9 months ago #229004
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 Deleted answers when update survey with conditional hidden Questions/Groups.
Or that.
But note that it will affect all surveys. My solution is for specific surveys.
But note that it will affect all surveys. My solution is for specific surveys.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 9 months ago by tpartner.
Please Log in to join the conversation.