Hide record checkboxes
Posted: 2025-06-05 03:26
How can I hide the checkbox that are to the left of each record in tableview? They are confusing to my users.
TD
TD
A place where AppGini users can exchange ideas and help each other.
https://forums.appgini.com:443/phpbb/
https://forums.appgini.com:443/phpbb/viewtopic.php?f=2&t=5627
Create fileHow can I hide the checkbox
hooks/TABLENAME-tv.js
, if not exists:Code: Select all
// file: hooks/TABLENAME-tv.js
jQuery(() => {
jQuery('.record_selector,#select_all_records').hide()
});
Code: Select all
// file: hooks/TABLENAME-tv.js
jQuery(() => {
jQuery('.record_selector,#select_all_records').closest('th,td').hide()
});
.show()
or .fadeIn()
in Javascript after you have applied the checkbox-fix.hooks/header-extras.php
, for example using display: none;
on your table element. But I cannot guarantee this is flicker-free. Should be working - not tested.Code: Select all
<!-- file: hooks/header-extras.php -->
<style>
table[data-tablename="YOURTABLENAME"] {
display: none;
}
</style>
Code: Select all
// file: hooks/TABLENAME-tv.js
jQuery(() => {
jQuery('.record_selector,#select_all_records').closest('th,td').hide()
jQuery('table[data-tablename="YOURTABLENAME"]').show();
});
hooks/header-extras.php
is too late and UI is still flickering, you may try in TABLENAME_header()
-hook-function in hooks/TABLENAME.php
. Not tested.