How to add select box in the widget in service portal

Samiksha2
Mega Sage

Hi All,

 

I have requirement to add dropdown in the widget. When we type name or any other fields of the spm_service_portfolio table, list of all the related records will show in the dropdown and after selecting anyone option, in another widget all the records related to that name will show.

 

Please help me in this.

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION

10 REPLIES 10

RaghavSh
Kilo Patron

Instead of drop down , you should use OOB sn record picker, which is quite flexible in terms of pulling records from table.

Creating HTML dropdown will require lot of unnecessary code:

 

Refer : https://www.servicenow.com/community/developer-blog/reference-fields-with-the-snrecordpicker-directi... 

 

Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023