I’m writing Javascript on an Appointment form and need to clear scheduledend DateTime field.
I’ve tried the obvious way, but it does not work.
Xrm.Page.getAttribute('scheduledstart').setValue(null);
Xrm.Page.getAttribute('scheduledend').setValue(null); // Both do nothing
How do I make the DateTime field blank?
This should work.
I’ve just tested on appointment form ‘onLoad’