I need a user (through user level) to edit a record only once, after editing, this record can no longer be modified by the user. ,. I am using this code ,. but I can complement it with what I ask
function Page_Render() {
if (CurrentUserLevel() == 3 ){
if ($this->acordado->CurrentValue == “0”||“1”)
$this->fecha_hora->ReadOnly = TRUE;
$this->exp_of->ReadOnly = TRUE;
$this->partes->ReadOnly = TRUE;
$this->contenido->ReadOnly = TRUE;
$this->recibe->ReadOnly = TRUE;
}}
girllandrade wrote:
if ($this->acordado->CurrentValue == “0”||“1”)
This line is incorrect.
Try:
function Page_Render() {
if (CurrentUserLevel() == 3) {
if ($this->acordado->CurrentValue == “0”|| $this->acordado->CurrentValue == “1”) {
$this->fecha_hora->ReadOnly = TRUE;
$this->exp_of->ReadOnly = TRUE;
$this->partes->ReadOnly = TRUE;
$this->contenido->ReadOnly = TRUE;
$this->recibe->ReadOnly = TRUE;
}
}
}