How can I get the display value from oldValue in a client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2021 11:41 AM
I have a requirement to store the old display value of a reference field in a string field. I'm using an onChange client script, but I can't figure out how to get the display value from oldValue. Does anyone know how I can accomplish this? What I have written returns the sys_id, I need the display value.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2021 12:26 PM
Thanks Stephen - I'll check into that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2021 01:18 PM
GJZ,
try oldValue.getDisplayValue()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2021 03:20 PM
This is a client script, getDisplayValue() isn't available for client scripts.