- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 09:03 AM
I have a jelly choice field (g:ui_choice_input) on a ui page that I'd like to add the incident close codes into. What is the easiest way to do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 09:22 AM
Hello @Jake Sadler
One way is to use GlideChoiceList to get choice values and use them in select tag.
Example:
<g:evaluate var="jvar_not_important" expression="var choices = GlideChoiceList.getChoiceList('incident', 'category');" />
<select id="list" class="form-control" name="list" aria-required="true">
<g:options choiceList="${choices}" />
</select>
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 09:29 AM
Hi Ahmed,
This does work for me but is there a way to add further queries to it like domain=UK for example?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 09:39 AM
Hello @Jake Sadler
I am not aware of domain separated instance.
If you open above mentioned OOTB UI page, it is querying the sys_choice table with GlideRecord.
I believe you can add domain query in GlideRecord, not sure though.
Thank you,
Ali
Thank you,
Ali