Answered
I'm trying to detect if a field is set to read only or not. Here is the script I have been working with and it is not working.
var myFld = getField("Txt.Lockable.DivisionLocation");
if(myFld.readonly === true)
{
app.alert("The field is not locked.");
}
else
{
app.alert("The field is locked.");
}
I have been trying to find out what the correct syntax is but cannot find anything. I hope someone can help me out.
app.alert(getField("Txt.Lockable.DivisionLocation").readonly);