- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 08:00 AM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:41 AM - edited 11-01-2022 09:42 AM
It should be "," instead of ";"
This should be look something like search-fields="'name,email'"
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:52 AM
not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 10:28 AM
<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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 11:06 AM
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