Rev 21823 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
function associateValidator(){$('#form').bootstrapValidator({fields: {RegisteredBusinessName: {validators: {notEmpty: {message: 'Please fill the BusinessName'}}},RegisteredAddress1: {validators: {notEmpty: {message: 'Please fill the Address field.'}}},city: {validators: {notEmpty: {message: 'Please fill the city '}}},pincode: {validators: {notEmpty: {message: 'Please fill your pincode'},}},state: {validators: {notEmpty: {message: 'Please select your state'}}},Landline: {validators: {stringLength: {max: 10,},notEmpty: {message: 'Pleasefill your phone number'},}},Mobile: {validators: {stringLength: {max: 10,},notEmpty: {message: 'Please fill your Mobile'},}},Email1: {validators: {notEmpty: {message: 'Please fill your email address'},emailAddress: {message: 'Please fill a valid email address'}}},Email2:{validators: {emailAddress: {message: 'Please fill valid email address'}}},DINNumber:{validators:{notEmpty: {message: 'Please fill the DINumber'}}},bEntitydoc:{validators: {file: {//extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},angledoc1:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},angledoc2:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},angledoc3:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},angledoc4:{validators: {file: {//extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},angledoc5:{validators: {file: {//extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},pan:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the valid pan Number'}}},Pandoc:{validators: {file: {//extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Pan card Document is required.'}}},ProprietorbusineesName:{validators:{notEmpty:{message:'Please fill the field'}}},ProprietorAddress:{validators:{notEmpty:{message:'Please fill the field'}}},Proprietorphone:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},Proprietorpan:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},Proprietoradhaar:{validators:{notEmpty:{message:'Please fill the field'}}},Proprietoremail:{validators: {notEmpty: {message: 'Please fill the field'},emailAddress: {message: 'Please fill a valid email address'}}},Proprietorowner:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},partnerName1:{validators:{notEmpty:{message:'Please fill the field'}}},partnerAddress1:{validators:{notEmpty:{message:'Please fill the field'}}},partnerphone1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},partnerpan1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},partneradhaar1:{validators:{notEmpty:{message:'Please fill the field'}}},partneremail1:{validators: {notEmpty: {message: 'Please fill the field'},emailAddress: {message: 'Please fill a valid email address'}}},partnerowner1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},shareholderName1:{validators:{notEmpty:{message:'Please fill the field'}}},shareholderAddress1:{validators:{notEmpty:{message:'Please fill the field'}}},shareholderphone1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},shareholderpan1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},shareholderadhaar1:{validators:{notEmpty:{message:'Please fill the field'}}},shareholderemail1:{validators: {notEmpty: {message: 'Please fill the field'},emailAddress: {message: 'Please fill a valid email address'}}},shareholderowner1:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the field'}}},Managername: {validators: {notEmpty: {message: 'Please fill the ManagerName'}}},ManagerNo:{validators:{stringLength: {max: 10,},notEmpty:{message:'Please fill the ManagerNo'}}},Manageremail:{validators: {notEmpty: {message: 'Please fill the Manageremail'},emailAddress: {message: 'Please fill a valid email address'}}},noofemployees:{validators:{notEmpty:{message:'Please fill the Number of employees'}}},Managementstaff:{validators:{notEmpty:{message:'Please fill the Number of Managementstaff'}}},ITRdoc:{validators: {file: {extension: 'pdf,zip,rtf,jpg,png',type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'ITR Document is required.'}}},ownershipdoc:{validators: {file: {//extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Ownership Document is required.'}}},insurancedoc:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Insurance Document is required.'}}},loandoc:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',//type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},sanctiondoc:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},chequecopy:{validators: {file: {// extension: 'pdf,zip,rtf,jpg,png',// type: 'application/pdf,application/zip,application/jpg,application.png'},notEmpty: {message: 'Document is required.'}}},portalName1:{validators:{notEmpty:{message:'Please fill the PortalName'}}},east:{validators:{notEmpty:{message:'Please fill the Area'}}},west:{validators:{notEmpty:{message:'Please fill the Area'}}},North:{validators:{notEmpty:{message:'Please fill the Area'}}},south:{validators:{notEmpty:{message:'Please fill the Area'}}},Front:{validators:{notEmpty:{message:'Please fill the Area'}}},roadsize:{validators:{notEmpty:{message:'Please fill the Area'}}},storename:{validators:{notEmpty:{message:'Please fill the storename'}}},storeAddress:{validators:{notEmpty:{message:'Please fill the storeAddress'}}},accountnumber:{validators:{notEmpty:{message:'Please fill the accountnumber'}}},bankname:{validators:{notEmpty:{message:'Please fill the bankname'}}},IFSCcode:{validators:{notEmpty:{message:'Please fill the IFSCcode'}}},Branchname:{validators:{notEmpty:{message:'Please fill the Branchname'}}},utr:{validators:{notEmpty:{message:'Please fill the field'}}}}}).on('success.form.bv', function(e) {$('#success_message').slideDown({ opacity: "show" }, "slow") // Do something ...$('#form').data('bootstrapValidator').resetForm();// Prevent form submissione.preventDefault();// Get the form instancevar $form = $(e.target);// Get the BootstrapValidator instancevar bv = $form.data('bootstrapValidator');// Use Ajax to submit form datavar isChecked = jQuery("input[name=bEntity]:checked").val();if(!isChecked){alert('Please select the type of BusinessEntity');return false;}else{}var isChecked = jQuery("input[name=bPmpdetail]:checked").val();if(!isChecked){alert('Please select the detail of BusinessEntity');return false;}else{}var isChecked = jQuery("input[name=businessmodel]:checked").val();if(!isChecked){alert('Please select the BusinessModel');return false;}else{}var isChecked = jQuery("input[name=sellingonline]:checked").val();if(!isChecked){alert('Please select the Sellingonline');return false;}else{}var isChecked = jQuery("input[name=shopArea]:checked").val();if(!isChecked){alert('Please select the shopArea');return false;}else{}var isChecked = jQuery("input[name=shopstatus]:checked").val();if(!isChecked){alert('Please select the shopstatus');return false;}else{}var isChecked = jQuery("input[name=shopAvailbility]:checked").val();if(!isChecked){alert('Please select the shopAvailbility');return false;}else{}var isChecked = jQuery("input[name=location]:checked").val();if(!isChecked){alert('Please select the Loacation of Shop');return false;}else{}var isChecked = jQuery("input[name=neareststore]:checked").val();if(!isChecked){alert('Please select the NearestStore');return false;}else{}var isChecked = jQuery("input[name=Insurance]:checked").val();if(!isChecked){alert('Please select the Insurance field');return false;}else{}var isChecked = jQuery("input[name=loan]:checked").val();if(!isChecked){alert('Please select the loan field');return false;}else{}var isChecked = jQuery("input[type=checkbox]:checked").val();if(!isChecked){alert('Please select the Status of shop');return false;}});}