Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Problem with numeric array type question

Problem with numeric array type question 1 Jahr 1 Monat her #97221

  • mattias
  • mattiass Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 77
  • Karma: 1
I would like to validate this type of question, for example the number selected in row 1 can not select the same in row two


Anhang answer.png nicht gefunden



<script type="text/javascript">
 
var preguntaI_1 = '#answer588446X306X2976P16_1_1';
var preguntaI_2 = '#answer588446X306X2976P16_2_1';
 
 
  $(document).ready(function() {
        $(preguntaI_2).change(function() {
            if ($(this).val() == $(preguntaI_1).val()) {
                alert('equal');
            } else {
                alert('diferent');
            }
        });
    });
 
</script>
 


regards
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Problem with numeric array type question 1 Jahr 1 Monat her #97304

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6205
  • Dank erhalten: 787
  • Karma: 238
Hello,

Maybe something like this with EM directly:
(QQ_SQ1_SQ1!=QQ_SQ1_SQ2 and QQ_SQ1_SQ1!=QQ_SQ1_SQ3 and QQ_SQ1_SQ1!=QQ_SQ1_SQ4 .... )
and
(QQ_SQ2_SQ1!=QQ_SQ2_SQ2 and QQ_SQ2_SQ1!=QQ_SQ2_SQ3 and QQ_SQ2_SQ1!=QQ_SQ2_SQ4 .... )
and
..

Look at :
Sub-question validation equation (em_validation_sq)
And
Expression Manager (maybe you can use some function, like countif ?)

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.222 Sekunden
Donation Image