On change client scripts are not working

prit123
Tera Contributor

On change client scripts are not working.

 

Created a new client script with simple alert/addinfomessage. This new on change client script written on Assigned to field is also not giving any message. 

 

What can be the reason of on change script not running?

6 REPLIES 6

@prit123 , you have removed the isloading part so your onchange will be working as onload client script so add refresh the page you will see the alert.

 

if you want to change it to  be only on onchange add the below code after line 2

 
if (isLoading || newValue === '') {
return;
swathisarang98_0-1719414765786.png

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

}

@swathisarang98 @Harsh Vardhan  - This script is written just for testing as all my on change script are not running on Incident form.

It is not giving any message on changing the assigned to field.