CRM 2013 configurator / developer. I am new to JavaScript and I need help with a request that I can use in the OnLoad event in CRM 2013.
In the "Destination" entity, I need to set the value of the custom field (set of options) based on the entity type of the associated parent record (which is "aboutobjectid").
Example;
-If 'aboutobjectid' Entity Type = 'Account' then sets the value of the “custom field” to “x”,
-If 'aboutobjectid' Entity type = 'Contact', then set the value of the "custom field" to "y".
A custom field is an option set with three possible values (x, y, z), so if it can be hidden by the value "z" when "aboutobjectid" Entity Type = "Contact", it would be awesome. Any help would be greatly appreciated.
source
share