Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Multiple Choice W/ Required Comment

Multiple Choice W/ Required Comment 1 Jahr 2 Monate her #96174

  • DoctorT
  • DoctorTs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 7
  • Karma: 0
How can I require that a comment be entered in a Multiple Choice W/ Comment question?

Or is there an alternative type of question that I may use?

Thank you!

Doctor T
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Multiple Choice W/ Required Comment 1 Jahr 2 Monate her #96222

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 6232
  • Dank erhalten: 793
  • Karma: 238
Hello,

Think tou can use Expression Manager[1] in question validation equation [2]

You have to use empty function with QCODE_SQ001comment :

example for SQ1 :
(empty(QCODE_SQ1) or !empty(QCODE_SQ001comment))
If i don't make error ;)

Denis
1: manual.limesurvey.org/Expression_Manager
2: manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Multiple Choice W/ Required Comment 1 Jahr 2 Monate her #96244

  • benmok
  • benmoks Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 10
  • Karma: 0
Sorry i am quite new at this.

What is the question name in your example? Is it SQ1? If so then shouldn't it be !empty(QCODE_SQ1comment)? Is QCODE a system syntax?

And shouldn't the validation be the other way around and also using AND instead of OR?
ie (!empty(QCODE_SQ1) AND empty(QCODE_SQ001comment))

I have read other posting that they use is_empty and !is_empty.

I have tried all variations in my validation codes and nothing works.

Regards,
Ben
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.149 Sekunden
Donation Image