I have some custom JS code that would help me validate fields on a list on the client side. Just in case, if fields pass the client side validations, I'm displaying an alert saying "Your item has been saved".
A couple of days back I ran into a situation where the user entered an invalid name (for eg: some randoms string such as 'asdf' and that wouldn't be resolved on PP field) on a people picker field and it wouldn't resolve it. But my Client side validation passed and the alert was shown. After that Server Validation ran and it tried to resolve 'asdf' on the PP field, which was not happening and gave an error message beneath the control. The user didn't see that and he thought as the form has already shown an alert saying "Your item has been saved", the item might have been saved and hence he closed the browser. The user reported later that he can not find his item on the list. I want to, at least, get the result of Server side validation using AJAX or any other possible way. Can anyone please guide me on how to achieve this? One-liner: I want to know if there is any way to get the Server side validation on the Client side?