How to create a Glide list field in ui page

sandhyahr
Tera Contributor

hi all,

I have   creating sites from (uipage) content management ,in that i have a reference filed   ,which i need to change it to glidelist field ,.?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sandhya,



You can use below code snippet in UI Page HTML Section.



<g:macro_invoke macro= "lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="core_company" can_write="true" />



It looks like this. You can remove the selected value from glide list as well.


ui-page.JPG



It invokes macro for glide list which is provided by servicenow.


reference attribute specifies to which table it should refer to. Here it refers to "core_company" table



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Hi Ankur,

I want to save those values in a record but I'm not able to access them.

Can you tell me how to access the values of GlideList field in Client Script?

 

Thanks in Advance.

 

Regards,

Deepak K

Hi Ankur,

How can I access the above glide list value in client script. I use the below snippet  code

var list = gel("change_subsystem").value;

and I am getting null value .

Can you please help.

Thanks

Gautam

Abinash
Kilo Contributor

Hi Ankur,

 

Can u tell me how can we put on a reference qualifier for Glidelist field in ui page. My glidelist field is reffering to group table and i want a filter .

How can i set this up