Welcome, Guest
Username: Password: Remember me

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

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #105968

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
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 administrator has disabled public write access.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #105987

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5106
  • Thank you received: 1049
  • Karma: 440
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.

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

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106016

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
Hi Tony,

File attached (capture)
Attachments:
The administrator has disabled public write access.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106038

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5106
  • Thank you received: 1049
  • Karma: 440
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.

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

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106112

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
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
Attachments:
The administrator has disabled public write access.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106119

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5106
  • Thank you received: 1049
  • Karma: 440
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.

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

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106120

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
Hi Tony,

Attached file for Group export result
hope it's works
Attachments:
The administrator has disabled public write access.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106122

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5106
  • Thank you received: 1049
  • Karma: 440
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

This message has an attachment image.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

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.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106148

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
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.
Attachments:
The administrator has disabled public write access.

Array Filter-> Prevent empty radio button show if previous "Other" empty 1 year 5 months ago #106166

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5106
  • Thank you received: 1049
  • Karma: 440
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.216 seconds