Want to populate logged in user name in widget form

Sagar_pawar
Tera Contributor

Hello All,

I want to populate the logged-in user name on the widget form for the requester field. I am new to the service portal please guide me on this thank you.

Thank You.

10 REPLIES 10

The scripts are OK.

But is the Body HTML Template exactly what you posted?

Cause the other attributes of the sn-record-picker directive are missing.

Sagar_pawar
Tera Contributor

Hello @Community Alums How to write this in input  tag .

Sagar_pawar
Tera Contributor

Hello @Community Alums whatever code you pasted here I know that basic code but I am working on the service portal

in that I have created a widget. In the widget, I have created a requester filed for the requester filed I want to populate the logged-in user name.

Community Alums
Not applicable

Okay, Now I got ur requirement.

Sagar_pawar
Tera Contributor

ok, @Community Alums if you found any solution please share.Thank You