Make question (input text) mandatory based on previous answer

Mehr
3 Monate 16 Stunden her #178715 von EdenResident
COM_KUNENA_MESSAGE_CREATED_NEW
Hello, my situation is like this.


Q1. I would like to be notified via
  • SMS
  • Email

Then later
Q5. Please enter your email address: [text box]

I want to make Q5 mandatory if the answer to Q1 is Email. I'm already aware of Relevance and it doesn't work here because I still want to collect the email address even if Q1's answer is SMS. Therefore, branching won't work.

Another option I considered is to have 2 email fields (one for SMS - not mandatory, one for Email-mandatory). This works but is too much of a hack and I would only use it as the last resort.

Beside those 2 methods above, is there a cleaner way to accomplish what I need?

Thanks in advance.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
3 Monate 4 Stunden her #178718 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
manual.limesurvey.org/Question_type_-_Sh...28em_validation_q.29

Q1.NAOK != "email" or !is_empty(self.NAOK)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Folgende Benutzer bedankten sich: EdenResident

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #178719 von EdenResident
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you, DenisChenu! That works perfectly.

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