Show/hide Master/detail link base on row value

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

Show/hide Master/detail link base on row value

Post by vuongduongquoc »

I need to show/hide the detail link when user click on each row to see the detail link. I put this code in list page / function Page_Render()
But it only works in case CurrentValue = '1'.
Where should i put this code please?

if ($this->gender->CurrentValue = '1') {
    $this->DetailPages["husband"]->Visible = False;
	$this->DetailPages["wife"]->Visible = True;
}
if ($this->gender->CurrentValue = '0') {
    $this->DetailPages["husband"]->Visible = True;
	$this->DetailPages["wife"]->Visible = False;
}

mobhar
User
Posts: 11660

Post by mobhar »

The comparison operator should be double equal to (==) instead of single equal to (=).


Post Reply