Hide field via user event script

/**
* @description Hide field via user event script
* @param context
* @param stFldId id of the field to be hidden
* @bIsHidden true|false if true, field will be hidden
*/
function fieldIsHidden(context, stFldId, bIsHidden){
if(bIsHidden){
context.form.getField({id: stFldId}).updateDisplayType({
displayType : 'hidden'
});
}else{
context.form.getField({id: stFldId}).updateDisplayType({
displayType : 'normal'
});
}
}

Leave a comment

Your email address will not be published. Required fields are marked *