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