Hide fields in detail view

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
fciprian
Veteran Member
Posts: 52
Joined: 2020-04-20 10:51

Hide fields in detail view

Post by fciprian » 2021-02-13 23:13

Hello
After upgrading to the latest release, the posibility to hide a field in detail view dosen t work now. what is wrong? the field is always showed now. Thank you.

In footer-extras.php :

<?
$memberInfo = getMemberInfo();
$manageri=array('Admins','Cip');
if(!in_array($memberInfo['group'] , $manageri)){
?>
<script type='text/javascript'>
document.observe("dom:loaded", function() {
$j('label[for="Editor"]').parent().hide();
});
</script>
<?
}
?>

Post Reply