So I have this function:
In theory this should prevent the form from being saved and it works fine for updated entities as well as for several non updated entities that I have tried. It's registered on the onSave event and the context is passed as the first parameter
It does not work for service appointments though.
There are no errors, it just runs through it and then saves it as if nothing has happened.
Same behaviour from IE 11 and Chrome 34
Any ideas?
TIA
var stopSave=function(context) { if (!checkCustomersOk()){ context.getEventArgs().preventDefault(); //Stops the Save Event } }
In theory this should prevent the form from being saved and it works fine for updated entities as well as for several non updated entities that I have tried. It's registered on the onSave event and the context is passed as the first parameter
It does not work for service appointments though.
There are no errors, it just runs through it and then saves it as if nothing has happened.
Same behaviour from IE 11 and Chrome 34
Any ideas?
TIA