List:Eventum General Discussion« Previous MessageNext Message »
From:Marcelo Coscia Date:September 24 2009 10:59am
Subject:Issue-discussion: Bug in Mandatory Custom fields
View as plain text  
Hi,

I resolved a problem related to "Bug in Mandatory Custom fields" (with 
multiple combo and combo)
In the file: js\validation.js
Add the two lines at the function : checkCustomFields

 function checkCustomFields(f)
 {
    // requires the variable custom_fields_info to be set  
     for (var i = 0; i < custom_fields_info.length; i++) {

         var info = custom_fields_info[i];
         var field = $('#custom_field_' + info.id);
  
+        if (field.val()!=null) {
            if (((field.val().length < 1) || (field.val() == -1)) && 
(field.parent().parent().css('display') == 'none')) {
                continue;
            }
+        }

I expect to help somebody...
regards
Marcelo

Thread
Issue-discussion: Bug in Mandatory Custom fieldsMarcelo Coscia24 Sep
  • RE: Issue-discussion: Bug in Mandatory Custom fieldsM  IN BLR SISL Srivathsan24 Sep