sn-record-picker need to display multiple fields what is the syntax to use display-fields attribute

Sushma R1
Tera Expert

In my case I'm referring to sys_user table and picking name(display name )field which is not a reference field, my client need the sn-record-picker to show the email ID just below the Name for each record(this feature is very much required because one person will have multiple credentials with different email IDs in my case)   I'm attaching and highlighting how I want it to be shown first . Any expertise on this?

sn-record-picker.jpg

1 ACCEPTED SOLUTION

larstange
Mega Sage

Hi



If you specify the email in the



display-fields="'email'"



the email will be displayed under the user name



and if you do a



search-fields="'name,email'"



The users can be searched by name or email


View solution in original post

16 REPLIES 16

shahid1
Kilo Expert

Hi Sushma,



Can you please let me know how were you able to allow user to select multiple option in the field?



If you can give me the code or help me out here then it would be great.



Thanks,


Shahid


Hi Shahid,


This should help you if you need to display multiple fields. display-fields is the one option which displays multiple fields just below the name in the search.



<sn-record-picker field="name" table="'sys_user'" display-field="'name'" display-fields="'title,email'"   search-fields="'name,email'"></sn-record-picker>



Thanks,


Sushma


HI Sushma,



Thanks for this but my requirement is that I want to have the functionality where in user can select multiple option within the field. More than one option what i mean.



Any help?



Thanks,


Shahid


for multiple options to be selected by user you can use list collectors if it's a catalog item.


Hi Sushma,



Its not a service catalog. Its a custom field. have you built any custom service portal field where in you are allowing the user to select more than one value?



Thanks,


Shahid