Welcome to the LimeSurvey Community Forum

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

Array Filter-> Prevent empty radio button show if previous "Other" empty

  • jajas
  • jajas's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #105968 by jajas
Dear LS Team,

I have question.

Q1.[Multiple Answer]
A1. Answer 1
A2. Answer 2
A3. Answer 3
A4. Answer 4
Other

Q2.[Single] ==> Answer Base On Selected Answer on Q1


I used array filter and it's work. The problem is, when "other" answer not contain a value,
in Q2 shown empty radio button.

how to prevent empty radio button if on Q1 "other" answer does not contain a value.

Need your help for this case, please..

Regards,

Sajaj
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #105987 by tpartner
Can you please attach a sample survey?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jajas
  • jajas's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #106016 by jajas
Hi Tony,

File attached (capture)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #106038 by tpartner
Can you please attach a sample survey, not just a screenshot?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jajas
  • jajas's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #106112 by jajas
Hi Tonny,

Sample attached.
in Second Question if Other in 1st Question Blank,
empty Radio button appear in second Question.

really need your help, please
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #106119 by tpartner
I'm sorry, I can't import that survey properly. You seem to have multiple questions using the same codes. Question codes must be unique.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jajas
  • jajas's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #106120 by jajas
Hi Tony,

Attached file for Group export result
hope it's works
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #106122 by tpartner
In Q2, change the last answer code to "other".



Here is a working survey.

File Attachment:

File Name: limesurvey...6781.lss
File Size:17 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jajas
  • jajas's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #106148 by jajas
Hi Tony,

Thanks for Replay.
it's work if Q1 [1st question] Multiple and Q2 [2nd Question] single.

but does not work if 2nd Question is array question.
when i Add question, shown error message "Error: 'other' is a reserved keyword."

Need your help for this problem.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #106166 by tpartner
Well, yes of course that solution was for a list-radio question as that's what you asked for.

Attach a relevant group.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose