Hide fields depending on the user

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

Hide fields depending on the user

Post by josecnp1 »

I have this function working:

// Page Render event
function Page_Render() {
//echo "Page Render";
if(@$this->clv_parent->CurrentValue == 14){
$this->resultado->Visible = FALSE;
}
}

but I can not use "CurrentUserID()" in replacement of number "14"
I tried this:

if(@$this->clv_parent->CurrentValue == $CurrentUserID())

but does not work.


scs
User
Posts: 694

Post by scs »

josecnp1 wrote:
if(@$this->clv_parent->CurrentValue == $CurrentUserID())

how about
if ($this->clv_parent->CurrentValue == CurrentUserID())


josecnp1
User
Posts: 73

Post by josecnp1 »

thank you very much.
it works


Post Reply