Forum Discussion
Former_Member
8 years agoAccelerator III
A small update. I stumbled across this blog relating to doing what I want to achieve. The suggested event to use was the onFormPopulated.
Using the following code:
var prj = getFieldByName("project");
var test = getFieldByName("z_test");
prj.getElementsByTagName("input")[0].disabled = true;
prj.getElementsByTagName("button")[0].disabled = true;
test.getElementsByTagName("input")[0].value = "Done";
This event though, has no effect on the project drop down. It is enabled.
If I change the event to onLoad and load the item in a locked status then the field is disabled.
If I load the item unlocked and then lock it, the field is enabled.
What am I missing?