- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 09:13 AM
I have a script that populates a listbox with the displayValue. That is not going to work because I have comma's in the names of the companies that are in the listbox. This is not a list collector it's a list
I can get the display value in there but it's not linking to the company when I click the preview it show nothing but if I add it with the lookup field it works as far as giving me the company in preview.
What am I doing wrong? I have the script include/client script (that populates based on a T/F field). These work but can't put the sys_id in the field and have it work (return the company name with the sys_id showing.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2020 12:09 PM
I found the problem, I was referencing the incorrect table. I was looking at Contracts instead of pulling from Company records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 01:23 PM
Tried everything. I'm trying to get around a perceived bug in ServiceNow's rendering of a dot-walked multiple choice list. In the end we gave up and provided a modal popup instead from the parent form. But the fact that it renders initially with all the correct "labels" but reverts to showing "values" if you touch the field when dot-walking - it's clearly broken. I thought I might be able to fix it by forcing in the list via script that it would naturally get populated with on it's home form but not getting when being dot-walked from a parent form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2020 12:09 PM
I found the problem, I was referencing the incorrect table. I was looking at Contracts instead of pulling from Company records.