- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 05:38 PM
Guys, I already tried using setValue and setDisplay, both are not working correctly, It seems to be any bit detail I am not finding. It worked in other fields but not for category field.
g_form.setValue('category', '7ab5be77dbacef406760000c8a961980');}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 05:58 PM
Hi Antonio,
First of all you should make sure your field is a reference, for example if you are talking about the incident.category (this field type is not reference) you can just do setValue using the internal value of the category, which you can get by looking at the choice values as follows:
and in this scenario you could do g_form.setValue('category', 'inquiry');
otherwise if the field type is reference, and the reference is valid but showing you the sys_id then you need to set the display value for the table you are referencing by following the documentation Select a field as the table display value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 05:49 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 05:58 PM
Hi Antonio,
First of all you should make sure your field is a reference, for example if you are talking about the incident.category (this field type is not reference) you can just do setValue using the internal value of the category, which you can get by looking at the choice values as follows:
and in this scenario you could do g_form.setValue('category', 'inquiry');
otherwise if the field type is reference, and the reference is valid but showing you the sys_id then you need to set the display value for the table you are referencing by following the documentation Select a field as the table display value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 06:13 PM
David, you are right!
thanks