Hide/show answers depending on category (not array filter)

More
3 years 6 days ago #123550 by Effenberg0x0
Effenberg0x0 created the topic: Hide/show answers depending on category (not array filter)
I have a Multiple Numeric Input question with a very specific problem. Examples below:

- I need it to only show the answer "Hardware" if the user checked "Computers", "Tablets" and/or "Monitors", etc in a previous question. If the user did not mentioned selling things that classify as Hardware previously, I like it to set Hardware to 0 and hide the "Hardware" answer.

- It should only show "Services" if the user checked "Support", "Maintenance", etc in a previous answer. Else, it should set "Services" to 0 and hide the answer.

As you can see, it's definitely not a direct array filter. Is it doable?

Thanks!

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123552 by steve_81
steve_81 replied the topic: Hide/show answers depending on category (not array filter)
Hello,

since 2.06 there is the possibility of subquestion relevance, this could solve the problem.


Greets
Stefan
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123556 by Effenberg0x0
Effenberg0x0 replied the topic: Hide/show answers depending on category (not array filter)
It works! But it creates a weird problem. Now I get a lot of SGQA identifiers printed to the end of the question, in the place where it should present the sum of the numeric fields and how much was missing to sum 100%. See the attached screenshot:





Now I gotta find a way to still have the sum of numeric fields and remaining to 100%, but hide all this SGQA.

What am I doing wrong here?
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123558 by holch
holch replied the topic: Hide/show answers depending on category (not array filter)
Can you post a copy of the relevant questions / question group here?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123560 by Effenberg0x0
Effenberg0x0 replied the topic: Hide/show answers depending on category (not array filter)
Sure, I exported the question to LSQ and attached it here. Let me know what else you need, or if you want an URL to access the survey.

I have just checked that when I add anything to the subquestion relevance of any answer, I get this weird output . If I clear the relevance fields for all answers, the weird output disappears and the sum/remaining of numeric fields starts working again.

Thank you so much for the support.
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123561 by holch
holch replied the topic: Hide/show answers depending on category (not array filter)
Have you tried it with a different template? I can see that you are not using one of the templates that comes with Limesurvey, but the one for Toolsforresearch. What happens if you switch to the default template?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123562 by holch
holch replied the topic: Hide/show answers depending on category (not array filter)
But only one question (.lsq) will not help, because this is based on more than one question, right? So please export the survey or at least the question group, that contains all relevant questions to make this work or reproduce the problem.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123563 by Effenberg0x0
Effenberg0x0 replied the topic: Hide/show answers depending on category (not array filter)
You are right Holch. When I switched back to the default template, I got rid of that. See the screenshot.



Do you know of any workaround I could use to continue using tfr but not have this problem?
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123564 by holch
holch replied the topic: Hide/show answers depending on category (not array filter)
I would assume that there is some kind of error in the template (probably some open "{" or something. Have a look in the source code of the template that generates the problem. And maybe have the user @Tammo informed. He is responsible for the tfr template and he might be able to look into this.

Um abraço desde São Paulo.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123566 by Effenberg0x0
Effenberg0x0 replied the topic: Hide/show answers depending on category (not array filter)
Maybe I can spot the problem by comparing the question in the default vs. TFR template using Chrome Dev Tools, if its something easy like a missing }. I'll definitely try that but for now I'll have to give up TFR and go back to the default template, I got like one hour to publish this survey...

Obrigado!

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123569 by tammo
tammo replied the topic: Hide/show answers depending on category (not array filter)
Too bad ... we will certainly look into this!

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in or Create an account to join the conversation.

More
3 years 6 days ago #123570 by tammo
tammo replied the topic: Hide/show answers depending on category (not array filter)
If possible, can you send us the total survey (we will delete it after solving the problem)? At what point did this occur?

thanks in advance,

Tammo

This email address is being protected from spambots. You need JavaScript enabled to view it.


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in or Create an account to join the conversation.

More
3 years 5 days ago #123586 by jelo
jelo replied the topic: Hide/show answers depending on category (not array filter)
I would try to convince the Limesurvey Team to bundle the third party templates of the download repository with Limesurvey (a Label "ThirdParty" to mark them in the Template overview). And a subforum here for templates with threads or sections for every of the bundles templates.
That would bring in more testing and more feedback. The business aspect has to discussed with the Team. It has pro and cons. But it push awareness for commercial templates.

Please Log in or Create an account to join the conversation.

More
3 years 5 days ago #123604 by tammo
tammo replied the topic: Hide/show answers depending on category (not array filter)
Hi Jelo,

this is something we would like very much, but when I talked with Marcel Minke about this, he said to me that the developers would possibly not want that software from other parties would be bundled with their developments. But I will ask again.

Thanks for thinking along with us,

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in or Create an account to join the conversation.

More
3 years 4 days ago #123625 by jelo
jelo replied the topic: Hide/show answers depending on category (not array filter)

tammo wrote: he said to me that the developers would possibly not want that software from other parties would be bundled with their developments.

Denis is a big fan of wordpress and the success of modular plugins. Perhaps a one-click installation will be a way to distribute third party template more easily without directly bundle them. Let's wait till the comfort updater keys will no longer be beta.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!