- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 01:20 PM
Hello All,
I am using g_form.getValue to develop an UI policy in Change Management.
This is the simple code that i used to display form variable "Configuration Item". The actual field name is cmdb_ci
var ci_name = g_form.getValue('cmdb_ci');
g_form.showFieldMsg('cmdb_ci',ci_name,'error');
Why is it displaying a lengthy reference value? How can i convert the reference value to just display as "denj******"?
Any help is greatly appreciated. Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 01:27 PM
Hi Varun,
Here you go.
var ci_name = g_form.getDisplayBox('cmdb_ci').value;
g_form.showFieldMsg('cmdb_ci',ci_name,'error');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 02:00 PM
Awesome. I am following you. Hope to see that happening soon.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 02:07 PM
Thanks Varun fro the update.You can find few helpful tips I have shared here.
Learning ServiceNow from Scratch and Prepping for the Certification Exam
Please let us know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 02:40 PM
FYI - I included that link in my response earlier.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 02:42 PM
You are very active and fast now 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2016 01:29 PM
chuck do you know whether g_form will be enhanced to align as we always have to workaround certain oddities and surely this negates any purpose of restricting the scope in first place?? we still get there 😉