Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Controllo tra due domande a scelta singola

  • antonellacap
  • antonellacap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago - 3 years 2 months ago #211615 by antonellacap
Controllo tra due domande a scelta singola was created by antonellacap
Ciao a tutti,
ho la necessitaà di impostare dei controlli di congruenza tra due domende a scelta singola di tipologia Lista (radio button).
In particolare ho la domanda ID15 con 4 risposte da A1 a A4 e poi la domanda ID16 con 10 risposte da A1 a A10.
Le modalità  di risposta di entrambe le domande devono restare tutte visibili e quindi non posso impostare un arrayfilter sulla seconda domanda.
Ora vorrei impostare un controllo sulla ID16 in modo che si possano scegliere solo le risposte
- A1 e A2 se si risponde A1 alla ID15
-A3, A4, A5 se si risponde A2 alla ID15
-A6, A7, A8, A9 se si risponde A3 alla ID15
-A10 se si risponde A4 alla ID15

e quindi siano possibili solo queste combinazioni di risposta.
Sto cercando di inserire nell'equazione di convalida qualche  esporessione ma non funziona nulla.
Come posso fare?

In allegato l'esportazione del gruppo
 
Last edit: 3 years 2 months ago by antonellacap.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago - 3 years 2 months ago #211617 by Joffm
Replied by Joffm on topic Controllo tra due domande a scelta singola
Buongiorno,
Equazione di convalida in ID16
Se usi codici numerici, è più facile.
is_empty(ID15) OR is_empty(ID16) OR ((ID15==1 AND ID16 lt 3) OR (ID15==2 AND ID16 gt 2 AND ID16 lt 6) OR (ID15==3 AND ID16 gt 5 AND ID16 lt 10) OR (ID15==4 AND ID16==10))
E una nota di convalida appropriata
 

 

 

Con i tuoi codici ("A1", "A2", ...) è più lungo
is_empty(ID15) OR is_empty(ID16) OR ((ID15=="A1" AND (ID16=="A1" OR ID16=="A2")) OR (ID15=="A2" AND (ID16=="A3" OR ID16=="A4" OR ID16=="A5")) OR (ID15=="A3" AND (ID16=="A6" OR ID16=="A7" OR ID16=="A8" or ID16=="A9")) OR (ID15=="A4" AND ID16=="A10"))

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 2 months ago by Joffm.
The topic has been locked.
  • antonellacap
  • antonellacap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #211620 by antonellacap
Replied by antonellacap on topic Controllo tra due domande a scelta singola
Grazie mille,
adesso funziona perfettamente.
The topic has been locked.
  • antonellacap
  • antonellacap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #211632 by antonellacap
Replied by antonellacap on topic Controllo tra due domande a scelta singola
Scusa nuovamente il disturbo, volevo chiederti se è possibile, una volta risposto correttamente ad una combinazione, non visualizzare più la nota di convalida o almeno far apparire "combinazione valida"
Ho notato adesso che diventa semplicemente verde ma rimane visualizzata.

Grazie in anticipo
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose