- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 09:33 AM
What is the easiest way to populate additional incident form fields with information about the Customer selected? for example when creating an incident and selecting a customer I would like to populate a field (Customer Phone) with the customer selected's phone number. I would like to have a template setup so I can create additional fields using this method as well but I am stuggling...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 11:09 AM
As Avneet mentioned, you are probably better off adding the fields from the reference table. This link shows you how - http://wiki.servicenow.com/index.php?title=Dot-Walking#Dot-walking_in_List_Collectors. The data will be updated automatically for you whenever the reference field is changed.
Even better, teach your users they can just hover over the reference icon to see additional information related to the record - Reference Icon - ServiceNow Wiki. This eliminates the need to add too many fields on a form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 09:37 AM
The method we selected is onChange client script set to run on 'requested_for'. Once the user is selected, the onChange fires and retrieves info on the user and populates those other fields (phone number, location, etc).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 10:58 AM
Hi Jared,
Instead of auto-populating fields on the incident form using a script that gets the data stored in the user table, I would suggest that you add the user table fields to the incident form view itself.
For writing a script refer to the below link:
Useful Field Scripts - ServiceNow Wiki
Thanks,
Avneet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 11:09 AM
As Avneet mentioned, you are probably better off adding the fields from the reference table. This link shows you how - http://wiki.servicenow.com/index.php?title=Dot-Walking#Dot-walking_in_List_Collectors. The data will be updated automatically for you whenever the reference field is changed.
Even better, teach your users they can just hover over the reference icon to see additional information related to the record - Reference Icon - ServiceNow Wiki. This eliminates the need to add too many fields on a form.