title: aui validator not working on form submit in liferay
body: <p>I have simple form with some field , I just want to validate my field on client side, so I am using  and it working on blur event</p>
  
  <p>the issue is when I submit form error message is displayed and form is submit</p>
  
  <p>I am trying to validate on form submit but how I can get to know which validation is failed</p>
  
  <pre><code>&lt;aui:form name="myForm" action="&lt;%=uploadPromotionURL %&gt;" method="post" enctype="multipart/form-data"&gt;
  &lt;aui:input name="promotionName"  label="Promotion Name"&gt;
      &lt;aui:validator name="required" errorMessage="This field can not be empty"/&gt;
  &lt;/aui:input&gt;
  &lt;aui:input name="promotionDesc" label="Promotion Description"/&gt;
  
  &lt;aui:input type="file" name="offerImages" label="Promotion Image" multiple="multiple" accept="image/*" onchange="setUploadSize(this)"&gt;
      &lt;aui:validator name="acceptFiles"&gt;'jpg,png,tif,gif,jpeg'&lt;/aui:validator&gt;
      &lt;aui:validator name="required" errorMessage="Please chhose offer"/&gt;
      &lt;aui:validator name="custom" errorMessage="File size should not be more than 5Mb"&gt;
                          function(val,node,junction){
                              if(uploadSize==true){
                                  return true;
                              }else{
                                  return false;
                              }
                          }
                      &lt;/aui:validator&gt;
  &lt;/aui:input&gt;
  
      &lt;aui:select label="Promotion Assignment" id="promotionAssignmentId"
          helpMessage="Choose options" name="promotionAssignment"
          multiple="true"&gt;
          &lt;c:forEach var="client" items="${clientList}"&gt;
              &lt;aui:option value="${client.key}"&gt;${client.value }&lt;/aui:option&gt;
          &lt;/c:forEach&gt;
          &lt;aui:validator name="required"
              errorMessage="Please Select At least One Client " /&gt;
      &lt;/aui:select&gt;
  
      &lt;aui:button type="submit" name="submit" value="submit" /&gt;
  </code></pre>
  
  <p></p>