Hide field unless user id is one of x, y, z

SOLVED

There is a field that people should be able to complete when adding a new company, but not able to change / view when on the change menu unless they are one of four people.

We thought an On Change script would work for this and have tried the below, however it does not hide the field (and my user ID isn't in that list).

if (user_userid == "38,27,28,32")
{
crm.fields("comp_agent").show();
}
else
{
crm.fields("comp_agent").hide();
}

Can anyone help?

Thanks
Sarah

Parents Reply
  • 0 in reply to Sarah Westbury

    You can see company teams here:  Sage CRM - Security Administration - Use Company Teams - YouTube

    This feature allows you to list additional users that have permissions over the company (useful when some information is then classified as sensitive.

    Because this is information that is stored in the database (in the table 'Team).  The team table is related to company in a similar way that the Notes table links to the Company via a Foreign Table ID and Foreign ID.  

    Create scripts can use the Record Object to check the data in the database.  You then could have different people associated with different companies and nothing would be hard coded.

Children
No Data