If I have a dropdown list I want to hide id_Status

hello
If I have a dropdown list
I want to hide id_Status = 3
Condition User_Level =2Table name is “problem”
The field to be filled is (problem.Status)dropdown Table name type_status
DROP TABLE IF EXISTS type_status;
CREATE TABLE IF NOT EXISTS type_status (
id_Status int(11) NOT NULL AUTO_INCREMENT,
name_Status varchar(255) NOT NULL,
PRIMARY KEY (id_Status)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;Please help write the code

I tried this code and it didn’t hide the number 3 from the dropdown menu
Please help write the codefunction Row_Rendered() {
// To view properties of field class, use:
//var_dump($this->);
$sconto = ExecuteScalar(“select id_Status,name_Status FROM type_status where id_Status !=3”);
$this->Status->CurrentValue = $sconto;}

You should use the Lookup_Selecting server event. See the examples in the help file topic “Server Events and Client Scripts”.