Hi,
(Using Microsoft Dynamics® CRM 2016(8.1.0.359) (DB 8.1.0.359))
I have an issue that I am not sure how to resolve. I have a lookup that I need to be able to remove or hide the "New" button.
The reason why I need to remove this button is because I have a form that allows a user to create code data (sub grid) that is related to the same entity. For example:
I have a Model entity and Case Entity. The Case Entity is use to allow a user to add the model records that can be used for the Case.
Once the user has added the models for the case. I have a sub grid that is used to allow adding additional information for the Case / Models. So base on the below image I have 3 models that the user can only select from. I do not want the user to try and create new models because that data is controlled.
I have read many postings and the final out come is to control this by using privileges. I have also seen where people have logic that has been created to handle the DOM. I have tried a few and had no luck getting the logic to work.
Here's my only options that I can think of in getting this to work.
1) Use javascript that is able to somehow disable or hide the button.
2) Use javascript that can control the privileges for disabling the "create" option. The privileges would change dynamically.
Does someone have any logic or example on how I can get this to work.
*This post is locked for comments