Anything similar to a getDisplayValue in client script?

thenning
Giga Contributor

We're attempting to do a database query from a client script (I know, generally not a good idea). Running into an issue when setting the form fields to the results, its setting the fields to the field value, not the display value. For example in incident, rather than setting the field to "Resolved", its setting it to the value "6".

Wondering if there's anything similar to getDisplayValue() in a client script as there is in a business rule?

5 REPLIES 5

+1 for this. I've actually been working on a UI script that will do this for reference, choice, and list fields. Stay tuned to SNGuru for an update soon!