Hiding Links/ Buttons in groups

Tips submitted by PHPMaker users

Hiding Links/ Buttons in groups

Postby Niijimasama » Fri Dec 09, 2016 12:14 am

If you have grouped your links as buttons, the following will help you to hide the individual links.
Place the code in the ListOptions_load

//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["view"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE VIEW BUTTON
$item = $this->ListOptions->Items["copy"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
//HIDE EDIT BUTTON
$item = $this->ListOptions->Items["edit"];
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
$item->Visible = FALSE;
Niijimasama
 
Posts: 9
Joined: Thu Aug 13, 2015 10:51 pm

Return to User Submitted Tips (PHPMaker)