Comments mandatory for 'Multiple choice with comments'

Mehr
1 Jahr 10 Monate her #156138 von Rzwiers
COM_KUNENA_MESSAGE_CREATED_NEW
Hi all,

In Limesurvey I have a couple of multiple choice questions with comments. I would like to make it mandatory to enter a comment before you can thick the box to select a specific answer in the list (just like is possible for 'other'). I hope this is possible.

Thanks so much for you help!

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
1 Jahr 10 Monate her #156154 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You can make comments and corresponding checkboxes mandatory via the Question validation equation.

So, assuming question codes like SQ001, SQ002, SQ003 and SQ004, an equation like this (line-breaks added for clarity):

{(is_empty(Q1_SQ001) AND is_empty(Q1_SQ001comment)) OR (!is_empty(Q1_SQ001) AND !is_empty(Q1_SQ001comment))
AND
(is_empty(Q1_SQ002) AND is_empty(Q1_SQ002comment)) OR (!is_empty(Q1_SQ002) AND !is_empty(Q1_SQ002comment))
AND
(is_empty(Q1_SQ003) AND is_empty(Q1_SQ003comment)) OR (!is_empty(Q1_SQ003) AND !is_empty(Q1_SQ003comment))
AND
(is_empty(Q1_SQ004) AND is_empty(Q1_SQ004comment)) OR (!is_empty(Q1_SQ004) AND !is_empty(Q1_SQ004comment))}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Folgende Benutzer bedankten sich: Rzwiers

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 10 Monate her #156159 von Rzwiers
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks a lot for your answer. For some reason I can't get this to work. I entered the code as Question validation equation and changed Q1 to the name of the question. When I save and preview the question, it is still possible to click the checkbox without commenting

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 10 Monate her #156188 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
If your adaptations are correct, you may be able to click the checkbox without commenting but you will not be allowed to submit the page. You can add a question validation tip to indicate that.

Sample survey attached:

Dateianhang:

Dateiname: limesurvey...6-22.lss
Dateigröße:19 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her - 1 Jahr 6 Monate her #160210 von IlanaWilken
COM_KUNENA_MESSAGE_REPLIED_NEW
Good day

I had the same issue in figuring this out, so I'm grateful for this post. However, after entering the question validation equation, it doesn't quite work as it should. I have six options, and only the first option's comment is seen as "mandatory". What could the reason for this be? Here is my equation:
(is_empty(RI7_SQ001) AND is_empty(RI7_SQ001comment)) OR (!is_empty(RI7_SQ001) AND !is_empty(RI7_SQ001comment))
AND
(is_empty(RI7_SQ002) AND is_empty(RI7_SQ002comment)) OR (!is_empty(RI7_SQ002) AND !is_empty(RI7_SQ002comment))
AND
(is_empty(RI7_SQ003) AND is_empty(RI7_SQ003comment)) OR (!is_empty(RI7_SQ003) AND !is_empty(RI7_SQ003comment))
AND
(is_empty(RI7_SQ004) AND is_empty(RI7_SQ004comment)) OR (!is_empty(RI7_SQ004) AND !is_empty(RI7_SQ004comment))
AND
(is_empty(RI7_SQ005) AND is_empty(RI7_SQ005comment)) OR (!is_empty(RI7_SQ005) AND !is_empty(RI7_SQ005comment))
AND
(is_empty(RI7_SQ006) AND is_empty(RI7_SQ006comment)) OR (!is_empty(RI7_SQ006) AND !is_empty(RI7_SQ006comment))

Thank you!
Last edit: 1 Jahr 6 Monate her by IlanaWilken.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her - 1 Jahr 6 Monate her #160212 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Hello, Ilana,

I can not reproduce that.
Are there any other conditions in this question?

See sample

Dateianhang:

Dateiname: limesurvey...7433.lss
Dateigröße:23 KB

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Anhang:
Last edit: 1 Jahr 6 Monate her by Joffm.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her - 1 Jahr 6 Monate her #160220 von IlanaWilken
COM_KUNENA_MESSAGE_REPLIED_NEW
Hello Joffm

There aren't any other conditions in this question that I know of. However, I only started using LimeSurvey yesterday, so I might be wrong.

I compared the code in your attachment to mine, and I see a big difference (see mine below). I just, unfortunately, don't know how to get mine to look like yours by just using Lime Survey's interface (I'm not a programmer).

The question is supposed to be mandatory and I thought that might influence it, but I turned it off and it still gave me the same results.
 
Last edit: 1 Jahr 6 Monate her by IlanaWilken.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her #160221 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi,Ilana,
I sent you an *.lss file.
So just import this survey and compare.
https://manual.limesurvey.org/Surveys_-_introduction#Import_a_survey

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her #160223 von IlanaWilken
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi

I just imported your survey and compared. Everything is now the same as yours.
I did a preview of your survey and unfortunately, the same thing happens. Only the first multiple choice choice is required to have a comment. The others can just be ticked and it's accepted like that. I will test and play around and hopefully come to a solution. If not, it won't be the end of the world. :)

Thanks again for your help.
Ilana

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 6 Monate her #160225 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Well, then you'd send us YOUR survey (*.lss) or a part of it with this question.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her #166522 von annieandongmei
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi, I am having the same issue. Attached is my survy. Can you help me?

annie
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her - 1 Jahr 1 Monat her #166533 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You were missing some brackets.

((is_empty(Q00004_SQ001) AND is_empty(Q00004_SQ001comment)) OR (! is_empty(Q00004_SQ001) AND ! is_empty(Q00004_SQ001comment))) 
AND 
((is_empty(Q00004_SQ002) AND is_empty(Q00004_SQ002comment)) OR (! is_empty(Q00004_SQ002) AND ! is_empty(Q00004_SQ002comment)))
AND
((is_empty(Q00004_SQ003) AND is_empty(Q00004_SQ003comment)) OR (! is_empty(Q00004_SQ003) AND ! is_empty(Q00004_SQ003comment)))
AND 
((is_empty(Q00004_SQ004) AND is_empty(Q00004_SQ004comment)) OR (! is_empty(Q00004_SQ004) AND ! is_empty(Q00004_SQ004comment))) 
AND 
((is_empty(Q00004_SQ005) AND is_empty(Q00004_SQ005comment)) OR (! is_empty(Q00004_SQ005) AND ! is_empty(Q00004_SQ005comment)))
AND 
((is_empty(Q00004_SQ006) AND is_empty(Q00004_SQ006comment)) OR (! is_empty(Q00004_SQ006) AND ! is_empty(Q00004_SQ006comment)))
AND 
((is_empty(Q00004_SQ007) AND is_empty(Q00004_SQ007comment)) OR (! is_empty(Q00004_SQ007) AND ! is_empty(Q00004_SQ007comment)))
AND 
((is_empty(Q00004_SQ008) AND is_empty(Q00004_SQ008comment)) OR (! is_empty(Q00004_SQ008) AND ! is_empty(Q00004_SQ008comment)))

Here is a sample survey:

Dateianhang:

Dateiname: limesurvey...2411.lss
Dateigröße:21 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Anhang:
Last edit: 1 Jahr 1 Monat her by tpartner.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her #166534 von annieandongmei
COM_KUNENA_MESSAGE_REPLIED_NEW
You are awesome. Thank you. It works. The challenge now is my survey is already active. I cannot edit the logic anymore. How can I edit the survey and add the logic? I can do it after midnight so the impact is small. My worry is whether i will lose my previous responses by editing it. And also, the link must remain unchanged after editing the survey.

Urgently need your help.

annie

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her #166540 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW

I cannot edit the logic anymore.

Why not? You can edit question logic on an activated survey. The only way you will loose data is if you deactivate.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her #166544 von annieandongmei
COM_KUNENA_MESSAGE_REPLIED_NEW
It is not editable. The Logic section of the question has been Read only. See screenshot attached.

annie
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha