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