Open Closed

How handle Validation error in ajax call? #304


0
omital created

Hi. How can I handle and view error validation to end user in right way ? for example suppose below code: vm.saveLab = function () { abp.ui.setBusy( null, labService.updateLab( vm.lab ).success(function () { abp.notify.info(abp.utils.formatString(localize("LabEditedMessage"), vm.lab.name)); $location.path('/lab/list'); }). error(function (data) { if (data.validationErrors != null && data.validationErrors.length>0) { ?????????????? } else abp.message.error('error'); }) ); };


1 Answer(s)
  • 0
    hikalkan created

    See that answer: #308

    You can override showError and show validation errors to the user if you want.