You need to sign in to do that
Don't have an account?
Mike A Smith
Is it possible to restrict picklist access on record creation?
Hi,
Is is possible to restrict access to a picklist on record creation with a VR? Meaning if only certain users are allowed to create a NEW record with any of the values in a certain PL can this be done with a VR or is a trigger needed?
Thanks.
Is is possible to restrict access to a picklist on record creation with a VR? Meaning if only certain users are allowed to create a NEW record with any of the values in a certain PL can this be done with a VR or is a trigger needed?
Thanks.
Please mark as Best Answer if above information was helpful.
Thanks,
All Answers
You can try below trigger.
Please mark as Best Answer if above information was helpful.
Thanks,
Hope this helps...
Thanks,
Sandbox access;
Sandbox A
Sandbox B
Please mark as Best Answer if above information was helpful.
Thanks,
For example, let's say you have a picklist field called "Status" with the values "Open" and "Closed". You only want users with the "Sales" profile to be able to select the "Closed" value. To achieve this, you can create a validation rule on the object with the following formula:
This validation rule will prevent users who are not in the "Sales" profile from creating a new record with the "Closed" value selected in the Status picklist.
Note that validation rules only run when a record is saved, so users may still be able to select the restricted picklist value, but they will receive an error message when they try to save the record.
If you want to prevent users from even seeing the restricted picklist values, you may need to use a trigger to enforce the restriction.
If you find my answer helpful, please mark it as the best answer. Thanks!
Thanks for the answer on 4/25. I was able to restrict the picklist option to certain users using your formula but what I need to do is prevent the restricted users from updating the picklist after the record is created. Possible to do in the same VR?
So if my picklist has options 'Sandbox A' and 'Sandbox B'... the users who CANNOT now select and save with 'Sandbox A' when creating the new record can select 'Sandbox B' and save it .... but then they can immediately edit that PL on the new record and select 'Sandbox A' and save it.
Is it possible to add more to the formula on the VR to prevent the user from selecting the restricted option AFTER the record is created?
Thanks,
Mike
Sure, can you please post as an new question and add details over there so that I can review and update.
Thanks,