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

It should be "," instead of ";"

This should be look something like    search-fields="'name,email'"


Raghav
MVP 2023

not working. 

It should work, i have seen this working for me.

 

Also refer: https://www.servicenow.com/community/developer-forum/sn-record-picker-need-to-display-multiple-field... 


Raghav
MVP 2023

<div class="form-group">

<label>

<span style="padding-right: .25em" title="Mandatory" class="fa fa-asterisk mandatory" ng-class="{'mandatory-filled': c.manager.value != ''}"></span>

Manager

</label>

<sn-record-picker field="c.manager" table="'sys_user'" display-field="'name'" value-field="'sys_id'" search-fields="'name,department'" page-size="100" placeholder="Manager" default-query="'active=true'"></sn-record-picker>

</div>

 

Search with Department is not working 

Can you try with a non reference field like email if that is working?

 

Also changing department to department.name is alo worth checking.


Raghav
MVP 2023