- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 04:47 AM
Hi Members,
I have a 'description' field on the Catalog Item. I have written the below script to set the value in the 'description' field on OnLoad Catalog Client script which is not working. Please suggest.
Release - Xanadu.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 09:00 AM
Hello @NehaSNOW
Can you change Ui Type - All instead of desktop. I guess that is reason your script not working.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 05:15 AM
Request you to close your earlier questions by marking appropriate response as correct.
Members have invested their time and efforts in helping and responding to your posts and replies.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 08:19 AM - edited 02-02-2025 08:59 AM
@Ankur Bawiskar Where is your answer for this question? If your solution works, then I will mark it appropriately. Please have patience as we also have to try other answers replied by the members.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 09:07 PM
Question below was answered by me but seems it's not yet closed
Apply Client Script in the Catalog Item
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 08:55 AM
Hi Neha ,
can you try with the below scrip :
function onLoad() {
var username = g_user.getUsername();
g_form.setValue('description', 'username ' + username);
}