how to hide field content on list options

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

how to hide field content on list options

Post by SOHIB »

Hello Every one
i have try to hide field content for the field

function ListOptions_Rendered() {
	if ($this->accmainbelong->CurrentValue == "facc") {
$this->ListOptions["accmainbelong"]->clear(); 
	}

}

but the value is not cleard


arbei
User
Posts: 9384

Post by arbei »

List options are options for the row, they are not fields. There is no ListOptions["fieldname"]. You should clear the ViewValue property of the field object (e.g. $this->MyField->ViewValue).


Post Reply