Welcome to the LimeSurvey Community Forum

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

hide list radio option

  • xrPortugal
  • xrPortugal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #213308 by xrPortugal
hide list radio option was created by xrPortugal
hello, i have been searching around for a couple hours, not finding what i need...

i have setup a form for people to register on workshops. this workshops will happen every 2 weeks or so.
i only want to have the next two dates showing upon registration.
i thought i could use the list (radio button) for this. is there a way to hide an answer option? seems like in the logic section you can only exclude answers in multiple choice questions :/
the only method i found was deleting the answer option, the answer code is still saved on the participants response : "A1" by default, but then i can't know the date the registration was for, unless i keep a separate excel sheet...
i might go this route if no other easier solution is possible.

thanks in advance to any soul that can help
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #213310 by Joffm
Replied by Joffm on topic hide list radio option
Hi,
yes you're right.
There is not option to show/hide answer option by relevance in single punch questions.

So you have a question of type "list(radio)" with ALL workshop dates, but you want to show only the next two dates?

The usual way (there are many examples here) is to
  • create a hidden "multiple" question ("M1") with exactly the same subquestion codes as answer option codes.
  • create a hidden equation ("eqM1")  that checks the necessary subquestions of this "multiple" question (like {M1_SQ==2=="Y"} )
  • use the "multiple" question as array filter of your "single" question

But how do you decide which dates have to be shown?
Do you use an equation to calculate them (using the current date)?

And I do not understand these two things

seems like in the logic section you can only exclude answers in multiple choice questions :/

In the logic section? How do you exclude answer options?

the only method i found was deleting the answer option, the answer code is still saved on the participants response : "A1" by default


What do you mean by that?


Conclusion:
1. You may use an equation that calculates automatically which dates have "to be checked" in the hidden "multiple" question.
2. Without this calculation of date you may adapt the equation manually.(possible even in an activated survey)

You should send your tries as lss export.
So we know better your survey structure and may advise better.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: xrPortugal
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #213315 by Joffm
Replied by Joffm on topic hide list radio option
Instead of using an equation to set the "multiple" question you may set the "default answers" to the respective dates.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: xrPortugal
The topic has been locked.
  • xrPortugal
  • xrPortugal's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #213329 by xrPortugal
Replied by xrPortugal on topic hide list radio option
thank you for your replies,

this equation stuff and logic might be a bit too much for me.

i will not have all the dates inserted, i will be adding the new date when the workshop is finished.

the workaround i think i will try for now, is in the answer options code i will use ZMMDD
with MM being the month and DD the day, so when i delete the answer option from the form, the code of the answer is still saved on the response
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #213330 by Joffm
Replied by Joffm on topic hide list radio option

 i will not have all the dates inserted, i will be adding the new date when the workshop is finished.

But you know that you can't ADD answer option in an activated survey.
And does this mean you do not know the dates of all workshops? I hope you know the total number of workshops.

this equation stuff and logic might be a bit too much for me.

You need to know at least the basics about equations.
 And in my second post I tolf you that it is possible without equations.

so when i delete the answer option from the form, the code of the answer is still saved on the response

Can you please show what this means.
I think you use the survey for registration. So you need to have the answer in the response, or?
Or did you expect you could just change the text of the answer options to get different answer codes? 

Here a very basic sample.
 

File Attachment:

File Name: limesurvey...1425.lss
File Size:28 KB

Acivate it and you may change the text (the dates) of the answer options and the default answer of the multiple question.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #213344 by tpartner
Replied by tpartner on topic hide list radio option
You can add single-choice answers to activated surveys, you cannot add multiple-choice sub-questions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #213346 by Joffm
Replied by Joffm on topic hide list radio option
Oh, Tony,
you're right, as usual.

Joffm

But then, what is the problem?
Add the new answers/dates, hopefully with different codes, and delete the other ones.
1.
 

 

2.
 

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose