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>
<?
}
?>
Hide fields
Re: Hide fields
As i investigate, it happends when is READ ONLY set in AppGini at that field.
Can anyone help me?
Thank you
Can anyone help me?
Thank you
Re: Hide fields
Hi,
what kind of field are you trying to hide?
what kind of field are you trying to hide?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Hide fields
Hello
I try to hide VarChar with <%%editorUsername%%>
With "Read only" and "Hide in table view" checked.
Thank you verry much for your time!
I try to hide VarChar with <%%editorUsername%%>
With "Read only" and "Hide in table view" checked.
Thank you verry much for your time!
Re: Hide fields
Hi,
try to change
to
try to change
Code: Select all
$j('label[for="Editor"]').parent().hide();
Code: Select all
$j('.'+AppGini.currentTableName()+'-Editor').hide()
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Hide fields
Thank you verry much for your time.
It works, but it hides on detail and also on table view.
It is my bad that i did not specify i need to hide only on detail view.
Thank you!
It works, but it hides on detail and also on table view.
It is my bad that i did not specify i need to hide only on detail view.
Thank you!
Re: Hide fields
Hi,
ok, good to know as you wrote
ok, good to know as you wrote
so tryWith "Read only" and "Hide in table view" checked.
Code: Select all
if (!$j('.table_view').length) $j('.'+AppGini.currentTableName()+'-Editor').hide()
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.