Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to create reference text field in a custom form in service portal?

joanmarisse
Tera Expert

Hi,

I am creating a custom form for a user's view of an existing form (e.g. incident)

How do I create a reference field like the Requestor below?

Please advise.

find_real_file.png

Thanks!

1 ACCEPTED SOLUTION
3 REPLIES 3

Brad Tilton
ServiceNow Employee

Hi Joan,



You can use the snRecordPicker directive for a reference field.



Reference Fields with the snRecordPicker Directive - ServicePortal.io - Service Portal, CMS, and Cus...


Hi Sir Brad,



Thank you very much for this information.


I just would like to ask to where do I put the controller code?


as well as the directive? I can't check the widget though since I do not have a share account.



Thanks!


Hi Sir Brad,



I get it now.


Thanks a lot for your help