How to hide a button on Detail View conditionally
Suppose in Specific Module i Want to Hide Delete button conditionaly from DetailView page, So where can i put condition for show/hide. You should be able to modify this in /custom/modules/<desired_module>/metadata/detailviewdefs.php Adding to this something like: if (your condition) { unset($viewdefs['<desired_module>']['DetailView']['templateMeta']['form']['buttons'][2]) //2 being the index of the DELETE button }…