Hi,
I'm adding a JS to the CRM form that should do 3 things:
1. Should hide an option set value (180560002) while creating a new record.
2. Should hide option set value from the existing record if the option set value != 180560002, to prevent users from updating it to that option.
3. Should show the option set value if the record already exists in CRM for value = 180560002.
Currently, my JS is doing the first two things correctly but it is also clearing the option set value from the record that already exists with contact type = 180560002