how to change icons for glide list in ui page.

sandhyahr
Tera Contributor

hi All,

i want to change the icons in the glide list to normal standard glide list ..

find_real_file.png

1 ACCEPTED SOLUTION

Hi Sandhya,



I didn't get the question. code breaking up when field changed from text to glide list. Are you fetching value of the glide list field in UI page and populating in some backend table. Is this where you are facing an issue?



Following is the script to get value from glide list field in UI Page. It has to be achieved using DOM manipulation



"select_0myListCollector" is the id for <select> tag when i tried the UI page. This could differ in your case. You need to check the id for the select tag


As per the screenshot the id is highlighted in red color



ui-page-2.JPG



The values which are selected in the glide list are stored as Options under select tag.


Following code will iterate for all options and alert the selected values. You could then store them in an array and process further as per your needs



var myOpts = document.getElementById('select_0myListCollector').options;



  for (i = 0; i < myOpts.length; i++) {


  alert(myOpts[i].value);


  }



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

7 REPLIES 7

Hi Rafael,



Good information shared.


Can you share the update set/components once you are done with your bootstrap stuff.


It would be helpful to me.



Thanks


Ankur


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

hi Rafael and anukur



Thank you so much for the reply ,you have shared good information ,as anukur said ,once you are finished with the bootstrap ,if you can share the update set it would me more helpful


Were you able to make it?