Good night!!!
How to hide a memo field from a group or user?
Att,
Washington Ferreira
hide a field
Re: hide a field
Hi,
can you please explain a little more detailed what you try to acheive. Do you want to hide the field in the TableView and/or in the DetailView?
can you please explain a little more detailed what you try to acheive. Do you want to hide the field in the TableView and/or in the DetailView?
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 a field
the attached image is explaining
- Attachments
-
- filed.jpg (86.17 KiB) Viewed 3788 times
Re: hide a field
Hi,
you can try this in the hooks/<tablename>.php file into the <tablename>_dv function the following:
you can try this in the hooks/<tablename>.php file into the <tablename>_dv function the following:
Code: Select all
function <tablename>_dv($selectedID, $memberInfo, &$html, &$args){
if ($memberInfo['group'] == 'GROUPTOHIDE')
{
ob_start();
?>
<script>
$j('label[for="Observacao"]').parent().detach();
</script>
<?php
$new_layout = ob_get_contents();
ob_end_clean();
$html .= $new_layout;
}
}
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 a field
Thanks PB, I was going to ask about this and appreciate you already having provided an answer in here.
Cheers,
Ron
Cheers,
Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course
Re: hide a field
Hi pbötcher,
I am curious. You suggested something similar ( viewtopic.php?f=2&t=3036 ) to a (from my point of view) similar question.
What is the difference between the code here (and why is this code not in the hooks/tablename _footer-function) and in my question?
I guess one could .hide the section as well.
I am happy about an explanation, but I understand if there are more important things for you. Thanks already anyway.
Olaf
I am curious. You suggested something similar ( viewtopic.php?f=2&t=3036 ) to a (from my point of view) similar question.
What is the difference between the code here (and why is this code not in the hooks/tablename _footer-function) and in my question?
I guess one could .hide the section as well.
I am happy about an explanation, but I understand if there are more important things for you. Thanks already anyway.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: hide a field
Hi Olaf,
there are multiple ways of getting to the (same) result, so you can choose which one you like most
.
there are multiple ways of getting to the (same) result, so you can choose which one you like most

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 a field
Hi pbötcher,
thank you, and again I learned a little more about jquery - the .detach seems interesting.
Olaf
thank you, and again I learned a little more about jquery - the .detach seems interesting.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button