Adding multi select field to a UI page

samadam
Kilo Sage

I need to add a multi select field(which lists values from a table) to a UI page and based on the values populate list of records. How can I add the multi select?

1 ACCEPTED SOLUTION

Sagar Patro
Kilo Guru

Hey,

You can use g:ui_slushbucket

 

Here is a snippet on how you can use it:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
 
	<g:evaluate jelly="true">
   var v_user = new GlideRecord('sys_user');
       v_user.query();
</g:evaluate>
	<div>
<g:ui_slushbucket name="sb" left_header="Left Side" right_header="Right Side">
   <j:while test="${v_user.next()}">
   <option value="${v_user.sys_id}" title="${v_user.name}"> ${v_user.name} </option>
   </j:while>
</g:ui_slushbucket>
	</div>

	
</j:jelly>

 

Result:

find_real_file.png

 

Mark this as Helpful and Correct if it was.

View solution in original post

5 REPLIES 5

RudhraKAM
Tera Guru

do you mean list collector ?

samadam
Kilo Sage

Yea, User should be able to select multiple locations.

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

On-Call scheduling has a UI page to create a report that includes a slush bucket.  Its:

g:ui_slushbucket

 

I haven't personally used this so I cannot provide any further direction, but you can search the out of the box UI pages for ui_slushbucket for examples to learn from.

samadam
Kilo Sage

Thank you