I have a requirement where in I have to display 2 fields on the Approver screen based on the application name.
Example:
If application name is ABC, then display fields Type1 and Type2.
For all other applications like DEF, GHI etc these two fields should not be displayed.
Using the below code, I am able to show or hide the field values. But the field name or label is still visible. Its not hidden.
function validate(FieldContext) { if (|appName|== "ABC") { FieldContext.showField("|Type1|");
FieldContext.showField("|Type2|");
} else {
FieldContext.hideField("|Type1|");
FieldContext.hideField("|Type2|");
}
}
Am I missing something?