Hi,
the manual for API Context says:
api.getProp("<prop reference name>")
Fetches another prop in the form using the reference Name assigned to it under the prop configuration. By fetching another prop we can control its value, available options, label, visibility, and so on.
Very explicative and lot of examples, "and so on", very good documentation! Anyway, I don't understand how to use this "visibility" attribute.
I tried many ways:
var department = api.getProp("department");
if (company === "EXT") {
department.visibility = 'none';
}
Also tried:
department.visibility = 'hidden';
department.visibility = 'false';
and:
department.visible = false;
department.visible = 'false';
No way, the Department field is always there!
Anybody knows how to use this visibility property?
Thanks,
Massimo.