AnsweredAssumed Answered

Field Validation for record view, validate email with API

Question asked by Caim Astraea on Sep 21, 2015
Latest reply on Sep 22, 2015 by Caim Astraea
Hello everyone ^_^

Following the example here  http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_7.5/20_UI_Mode...

I'm trying to add a validation for checking the email , however having problems stopping the execution. It will create the entry regardless of the error if a name is entered in the name field.

Can someone shed some light , I feel I'm missing something.

https://output.jsbin.com/tayofohomu.js 

update:
Noticed that the validation for .required is done instantly while the external one takes 1-2 seconds more? Maybe this is why the record is still getting created?

Outcomes