Hide Extended Classification Fields

Does anyone know how to hide an extended classification field? I have the following method in my (FORM) for (onFormPopulated)

var sOnly = aras.getItemProperty(document.item, 'program');  
var input3 = getFieldByName("xp-fvmp");

if (sOnly == "ABC")  
{
setTimeout(function()
{
input3.style.visibility = "hidden";
}, 100);
}
else
{
setTimeout(function()
{
input3.style.visibility = "visible";
}, 100);
}

  • Hello,

    Could you confirm what issue you're currently seeing with this method? Could you also let us know which version of Aras Innovator and which browser you're using? I tried testing this code in a local instance of 12.0 SP6, and it successfully hid the xClass field as I expected. 

    As a note, all of the fields should be loaded by the time the onFormPopulated event is called, so the setTimeout's might be unnecessary. I didn't need them in my test environment at least.

    Chris