I have a function in presave that takes the user name in the people picker available on the form and do some business logic. After completion of script the actual save function is called.
The issue is that if the value entered in people picker is not resolved (even if the value is valid name) then the value is not received correctly in the presave function.
I have tried to call the click of people picker resolution but since its asynchronous function i cannot get the entire value ie. domain/alias before my further code starts executing.
Any idea on how to achieve this.