Hide detail table button

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Hide detail table button

Post by johnberman »

Well I just dont see what Im doing wrong

I have a master \ detail page setup

when I click on the detail page under the record count there is a button with a grid on it that links to: k/interface/event_commentslist.php?showmaster=meteor_events&fk_event_id=85837

If I add this

$(document).ready(function() {
$('[data-phrase="MasterDetailListLink"]').hide();
});

to Client Scripts \ List Page \ Client Scripts

The grid from the button disappears but the button remains and still links to the same place

I have recreated all the files and removed the cache files from the browser

Regards
John B


mobhar
User
Posts: 11716

Post by mobhar »

Just disable "Use buttons as links" option from "PHP" -> "Page Options (Global)". Or, you may disable this setting for that table only, from "Table" setup -> "Table-specific Options" -> "List Page" -> "Use buttons as links".


arbei
User
Posts: 9379

Post by arbei »

johnberman wrote:

$(document).ready(function() {
$('[data-phrase="MasterDetailListLink"]').hide();
});

Change your code as below and try again.

$('[data-phrase="MasterDetailListLink"]').parent().hide();


Post Reply