Disable input for certain fields based on criteria
Posted on 2004-10-26
I've got a form that contains many combobox fields and I want to disable certain fields from being editable when the current user is not the creator.
if(document.forms.authUser.value != document.forms.lName.value)
document.forms.UserName.disabled = true;
document.forms.Company.disabled = true;
document.forms.Department.disabled = true;
document.forms.probCategory.disabled = true;
document.forms.probDesc.disabled = true;
This works fine for the web but in the notes client it does not work so I hope someone can help by providing a lotusscript or formula version of my current JS codes. (I dont know what is the field property in LS that controls editability)
I've tried using:
authUser = lName
Thats all! Thanks in advance for any help.