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

More
3 years 3 months ago #105968 by jajas
jajas created the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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

Please Log in to join the conversation.

More
3 years 3 months ago #105987 by tpartner
tpartner replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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.

Please Log in to join the conversation.

More
3 years 3 months ago #106016 by jajas
jajas replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
Hi Tony,

File attached (capture)
Attachments:

Please Log in to join the conversation.

More
3 years 3 months ago #106038 by tpartner
tpartner replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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.

Please Log in to join the conversation.

More
3 years 3 months ago #106112 by jajas
jajas replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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:

Please Log in to join the conversation.

More
3 years 3 months ago #106119 by tpartner
tpartner replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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.

Please Log in to join the conversation.

More
3 years 3 months ago #106120 by jajas
jajas replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
Hi Tony,

Attached file for Group export result
hope it's works
Attachments:

Please Log in to join the conversation.

More
3 years 3 months ago #106122 by tpartner
tpartner replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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.
Attachments:

Please Log in to join the conversation.

More
3 years 3 months ago #106148 by jajas
jajas replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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:

Please Log in to join the conversation.

More
3 years 3 months ago #106166 by tpartner
tpartner replied the topic: Array Filter-> Prevent empty radio button show if previous "Other"
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now