I need to make a field on the screen read only when the screen is in Edit mode. I don't want to make the field read only in field level security as there are some procedures that will run that will update this field. I would like to do it on the screen configuration...or in the ASP page itself (if possible).
I have gone to the detail box on the screen through Administration --> Customization --> MyCustomEntity -->Screens
On the screen definition page, I entered the following in the OnChangeScript box...
if(CurrentUser.user_logon == "-1")
{
ReadOnly=false;
}
else
{
ReadOnly = true;
}
However, when I go to the screen and hit the change button...I can still change the field.
Am I doing this correctly? Based on the out come it does not appear so. Can someone please push me in the right direction?
Thank you!!