HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/agency-erp-05.workzenix.com/public/admin/assets/js/pages/form-validation.js
'use strict';
(function () {
  
var bouncer = new Bouncer('[data-validate]', {
  disableSubmit: true,
  customValidations: {
    valueMismatch: function (field) {
      var selector = field.getAttribute('data-bouncer-match');
      if (!selector) return false;
      var otherField = field.form.querySelector(selector);
      if (!otherField) return false;
      return otherField.value !== field.value;
    }
  },
  messages: {
    valueMismatch: function (field) {
      var customMessage = field.getAttribute('data-bouncer-mismatch-message');
      return customMessage ? customMessage : 'Please make sure the fields match.';
    }
  }
});

document.addEventListener(
  'bouncerFormInvalid',
  function (event) {
    window.scrollTo(0, event.detail.errors[0].offsetTop);
  },
  false
);

document.addEventListener(
  'bouncerFormValid',
  function () {
    alert('Form submitted successfully!');
    window.location.reload();
  },
  false
);

})();