I have a picklist field that needs to have the default enforced for only one profile, if Record Type is "Implementation Work Order". I have made the Project Phase picklist value "Configure - Scheduled RTC" the default field value for the profile. I now need to prevent the users from changing the Project Phase field to another picklist value.
The profile will need to select other values in the Project Phase field, when using other record types.
This is the Validation rule I have created, but it is hitting a syntax error:
AND(
$Profile.Name <> 'Project Management',
$RecordType.DeveloperName <> 'Implementation Work Order',
IsPICKVAL(Project_Phase__c, 'Configure - Scheduled RTC')
)
Note: The syntax error is highlighting the comma after the Record Type line
DeveloperName
is the API Name, which cannot have spaces. If you want to refer to the Label, then useName
field. Also, using the global var for RecordType is not recommended, see documentation.