Hello there i have a function to auto fill date time Like owner field when create new record below is code
but not working where i am wrong 2013 crm
function InitiateDate()
{
var isCreateForm =Xrm.Page.ui.getFormType() ==1;
var vardate = Xrm.Page.getAttribute(‘new_datetime’).getValue();
if(isCreateForm)
{
vardate .setValue(new Date());
vardate .setSubmitMode("always");
}
}
*This post is locked for comments
I have the same question (0)