Create script in lists

Hi 

i have some code which works when adding to a fields creates script on on search or entry screens but adding the same code on the field create script box on lists doesnt seem to work

client has a requirement to change the name of the field based on the logged on users security profile - here is the code:

if (CRM.GetContextInfo("user","user_territoryprofile")=="10")
{
crm.fields("oppo_forecast").caption('Potential Invesment');
}

works fine on screens but not on lists-  any ideas?

Parents Reply Children
No Data