g:ui_choice_input how to add incident close codes

Jake Sadler
Kilo Sage

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?

1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage

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

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

6 REPLIES 6

Hi Ahmed,

 

This does work for me but is there a way to add further queries to it like domain=UK for example?

 

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

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali