Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Catalog onChange() Client Script not working

Milan13
Giga Expert

Hello,

I have a catalog onChange() client script which should fill the short description field  according to description field contents accordingly. This concerns record producer for Service Portal - Create Incident.

This just doesn't work, no idea why, can anyone please advise?

Appreciate your help,

Milan

Catalog client script:

find_real_file.png

 

 

Record Producer in my Service Portal:

find_real_file.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi 

Please change UI type in your client script from Desktop to All.

 

find_real_file.png

Regards,

Omkar Mone.

www.dxsherpa.com

View solution in original post

2 REPLIES 2

Omkar Mone
Mega Sage

Hi 

Please change UI type in your client script from Desktop to All.

 

find_real_file.png

Regards,

Omkar Mone.

www.dxsherpa.com

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Milan,

set UI type as All and also use toString() before doing the length check

g_form.getValue('description').toString().length

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader