- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-16-2019 12:32 AM
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:
Record Producer in my Service Portal:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-16-2019 12:34 AM
Hi
Please change UI type in your client script from Desktop to All.
Regards,
Omkar Mone.
www.dxsherpa.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-16-2019 12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-16-2019 12:37 AM
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
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader