Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with numeric array type question

Problem with numeric array type question 1 year 4 months ago #97221

  • mattias
  • mattias's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 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


Attachment answer.png not found



<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
The administrator has disabled public write access.

Problem with numeric array type question 1 year 4 months ago #97304

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.158 seconds
Donation Image