Welcome, Guest
Username: Password: Remember me

TOPIC: Hidden question not saved in database

Hidden question not saved in database 10 months 3 weeks ago #96443

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
Hello,

my Problem is: I have a single choice question, which saves the answer of a previous question. This works fine, however, if I hide the question, the results are not saved in the database.

Can anyone be of help?

Version 2.00+ Build 130514

Thanks in advance and greetings from Austria
Andrea
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96445

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2445
  • Thank you received: 254
  • Karma: 94
How do you hide the question and how do you pass the answer of the previous question to this question?

Because Javascript can't pass on information to questions that are hidden by the system. You need to hide the question via CSS, so that she is still there in the source code but just not shown to the respondents.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96449

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
Dear Holch,

I pass the answer of the previous question in a short text question: Default value ->
{if(that.Q3,'{that.Q3.shown}', '{that.Q3a.shown}')}

and hide the short text question in advanced settings, but results are not saved in database.

I also tried to set "always hide this question" to no, and hide it via CSS ->
#question638444X3X93 {display:none;}

but in this case the question is not hidden.

Any idea?

Thanks a lot

Andrea
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96456

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
Try:
#question93 {display:none;}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96461

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
Hi tpartner,

I also tried #question93 {display:none;}, did also not work.

Best regards,

Andrea
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96491

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
Is there any solution to this problem?

Rgds,
Andrea
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96496

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
Can you attach the survey here (or a copy containing no sensitive content)?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96505

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
here it is, I tried it with different templates. Answers of Q3a are saved, when I set "Always hide this question" to no.

As soon as I set it to yes it does not save the reuslts.

Regards
Andrea

File Attachment:

File Name: limesurvey_survey_638444.lss
File Size: 29 KB
The administrator has disabled public write access.

Hidden question not saved in database 10 months 3 weeks ago #96523

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
Why not use an Equation type question to store that value?

File Attachment:

File Name: limesurvey_survey_638444.lss
File Size: 29 KB
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: Andrea

Hidden question not saved in database 10 months 3 weeks ago #96535

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Gold Donor
  • Posts: 33
  • Karma: 0
thank you, works fine.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.122 seconds
Donation Image