--- loncom/interface/loncreateuser.pm 2017/04/02 04:36:07 1.440 +++ loncom/interface/loncreateuser.pm 2017/07/26 19:42:22 1.441 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.440 2017/04/02 04:36:07 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.441 2017/07/26 19:42:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5829,12 +5829,13 @@ function validate_types(form) { } function check_types(num,countfail,needaction) { - var typeidx = getIndexByName('selfenroll_types_'+num); + var boxname = 'selfenroll_types_'+num; + var typeidx = getIndexByName(boxname); var count = 0; if (typeidx != -1) { - if (document.$formname.elements[typeidx].length) { - for (var k=0; k