Hide the "Add New" button
Hide the "Add New" button
Is there a way to hide the Add New button on a certain table?
Re: Hide the "Add New" button
Have you tried unchecking the "Insert" privilege button for the particular table on the Group permissions in the Admin area?
Result = no "Add New" button for that Group on that table.
Result = no "Add New" button for that Group on that table.
Re: Hide the "Add New" button
I want users to be able to add new records to the table, but only while in DV-TV of the parent record. If they are in table view of the target table I want the "Add New" button hidden or disabled.
Re: Hide the "Add New" button
to hide Add New in detail view
use this code on tablename-dv.js
in table view
use this code in tablename-tv.js
use this code on tablename-dv.js
Code: Select all
$j('#addNew').hide();
use this code in tablename-tv.js
Code: Select all
$j('#addNew').hide();
Re: Hide the "Add New" button
This code is working for DV but not TV.
Re: Hide the "Add New" button
I use setInterval function for TV. The AddNew button will eventually appear momentarily and then disappear.
If anyone have better solution, please share.
Thanks.
Code: Select all
// hide the AddNew button after set interval value
$j(function () {
setInterval(function () {
$j('#addNew').hide();
}, 100);
});
Thanks.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.