OnChange client script on reference field

Vijaykumar K
Tera Contributor

Hi all,

 

  • I'm looking for a request,  if "assigned to" is a some perticular user (reference to sys user table) then need to clear the value and revert back the changes on page. 

 

I'm trying the below script but it's not working as expected, it's working for every user not to specific to user sys Id. 

IMG_20231027_132801__01.jpg

1 ACCEPTED SOLUTION

ServiceNow Use6
Tera Guru

Hi @Vijaykumar K ,

You are using 'if' condition and you are using ';', so it is not entering the condition.

Regards

Suman P.

View solution in original post

11 REPLIES 11

@Harsh_Deep My bad for not looking into the entire trail and not checking each replies. Anyways, we all are here to share the knowledge and help the individuals who are looking for answers.

Hello @Sandeep Rajput 

 

But if we don't have time to looking into the entire trail, then we have one sort options for the questing which will give us only unreplied question's.
So please use that because this will create confusions to the readers.

 

Thanks