Copy link to clipboard
Copied
Hey, so I was trying to find out of it was possible to both lock specific fields and run a Javascript code to auto populate a "date signed" field ( this.getField("Date").value = util.printd("yyyymmdd", new Date()); )? I've gotten auto dates running fine and lock fields running fine separately, but in the tool tip they are mutually exclusive radial options. Is there a way to do both?
Copy link to clipboard
Copied
I'm trying to accomplish the same thing. Did you ever figure it out?
Copy link to clipboard
Copied
You can "lock" a field using the script, yes. Use the following command:
this.getField("FieldName").readonly = true;