I have a custom field on the opportunity called 'Event' which is a selection field that contains a year value.
If I add the following to this fields OnChange event it works fine:
myStr = this.value;
const currentYear = new Date().getFullYear();
if (myStr.includes(currentYear))
{
oppo_source.value = 'Web';
}
But what I want to do is set the oppo_source value to be the same as the pers_source value, so I amended the line to:
oppo_source.value = CRM.GetContextInfo("person","pers_source");
But it doesn't change the Source.
Any suggestions appreciated.

