Forum Discussion
Former_Member
8 years agoAccelerator III
Hello Chris,
Thank you for your response. I am on Version 11 SP12.
You might need to give me a nudge on how to achieve: "place the code you have to disable the field inside of a short timeout."
using this code and assumes that the project drop down has a value:
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 = prj.getElementsByTagName("input")[0].value;
Observations
onLoad
1. Loading item unlocked - All fields locked. z_test textbox blank.
2. Switching loaded item to Lock - All fields are enabled and z_test textbox is blank
3. Loading item locked - All fields are enabled and z_test textbox is blank
4. Toggling Lock status - All fields are enabled and z_test textbox is blank
onFormPopulated
1. Loading item unlocked - All fields locked. z_test textbox blank.
2. Switching loaded item to Lock - All fields are enabled and z_test textbox is filled with project value
3. Loading item locked - Project field is locked. z_test textbox is blank.
4. Toggling Lock status - All fields are enabled and z_test textbox is is filled with project value