March 2017
Beginner
358 pages
9h 51m
English
Like many fields within ServiceNow, the default value field accepts JavaScript by prefacing it with the javascript: keyword, just like in the condition builder. Scripts within this field even have access to the current object, and you can dot-walk through Reference fields in them.
For example, let's say you want the country field in a given table to be set to the same value as the country field on the Caller's user account. To accomplish this, you could navigate to the country field's dictionary entry, and set its default value to: javascript:current.caller_id.country.
Read now
Unlock full access