This topic is locked

Change field event not firing

2/8/2020 2:40:29 AM
PHPRunner General questions
M
muhdsumar author

I have a change field event that was worked well using PHPRunner 10.2. Now I'm using 10.3 and the event is not firing. I'll appreciate if I could be assisted with where I might have been wrong.
Below are the codes that I have in the event:
Client Before:
params["value"] = this.getValue();
Server:
$pno = $params["value"];
$sql = "select personnelno from personnel_tb where personnelno= '".$pno."'";

$rs = DB::Query($sql);

$row = $rs->fetchAssoc();

if (!$row) {

$result['message'] = "You have not entered a recognised personnel number, please contact Admin.";
}
Client After:
if (result["message"] ) {

alert(result['message']);

this.clear();

this.setFocus();

}