Follow below code to read and write the Date and Time field of Dynamics 365 CRM.
1. To Read the value:
Below code are read the Name field value and store into empDOB variable.
var empDOB = formContext.getAttribute("min_dob").getValue();
2. To Set/Update value:
Below code will be check the Name field contains data, if it contains then set/update the min_dob1 field value.
if (empDOB !== null && empDOB !== undefined)
{
formContext.getAttribute("min_dob1").setValue(empDOB);
}
No comments:
Post a Comment