Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hello,
A timeout allows a function to be called after a certain number of milliseconds has passed. For your example, you can try something like:
Christopher Gillis Aras Labs Software Engineer
var prj = getFieldByName("project");
var test = getFieldByName("z_test");
setTimeout(function(){
prj.getElementsByTagName("input")[0].disabled = true;
prj.getElementsByTagName("button")[0].disabled = true;
test.getElementsByTagName("input")[0].value = prj.getElementsByTagName("input")[0].value;
}, 100); // <-- this well be called after 100 milliseconds
If this doesn't resolve the issue you are seeing, you may need to increase the amount of time you are passing into the function.
Chris
Christopher Gillis Aras Labs Software Engineer