Forum Discussion
Gopikrishnan
6 years agoAccelerator II
Hi Mouad
Below on form populate method might help in this case (This will check whether the document is in edit mode and state = "Preliminary"
var state = document.thisItem.getProperty("state", "");
if (document.isEditMode && !aras.isTempEx(document.item))
{
if (state === "Preliminary")
{
getFieldByName("_champ").getElementsByTagName("input")[0].disabled = false;
}
}
else
{
getFieldByName("_champ").getElementsByTagName("input")[0].disabled = true;
}
Thank You
Gobikrishnan R