Hi all,
I have a requirement to validate if some of the custom fields on the Appointment form have been filled in when Appointment is being marked Complete using out-of-the-box Mark Complete ribbon button. I cannot seem to intercept this event though. I created a js function that fires when the form is being saved and it does fire, but the statecode value is 0 (open) when it fires when I'm expecting 1 (complete). I even created an event on value change of the statecode field and it doesn't fire at all. It feels like CRM changes the record status in a way that browser isn't made aware of this change. Anyone knows how I can achieve this?
Thanks,
-TS.