The CreatorCon Call for Content is officially open! Get started here.

GlideModal form on Service Portal

maryc
Tera Contributor

Hi,

 

I have a link on the Service Portal and I want to open a Glidemodal ( or a popup) window showing 2 reference fields and related fields on the form. On submit of the modla, it has to execute some logic and show an info message on the modal. How do I do that?

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @maryc ,

I tried to showing email in reference field 

<sn-record-picker field="location" table="'sys_user'"   display-field="'name'" display-field="'email'" value-field="'sys_id'" search-fields="'name'" page-size="100" ></sn-record-picker>

 

By doing this small change it shows email id you just need to change one parameter in sn-record-picker for email display-field="'email'" 

Result 

SarthakKashya2_0-1714371251293.png

 

Please mark my answer correct and helpful if this works for 

 

Thanks and Regards 

Sarthak

 

View solution in original post

16 REPLIES 16

Thank you. Lastly, how do I populate the email of the selected user in the modal under the reference field?

The modal should have reference field of user, email  and another reference field

 

Thanks a lot

Community Alums
Not applicable

Hi @maryc ,

You can do set the display value from the backend in that case it will work for you

 

Please mark my answer correct and helpful if this works for 

 

Thanks and Regards 

Sarthak

Community Alums
Not applicable

Hi @maryc ,

I tried to showing email in reference field 

<sn-record-picker field="location" table="'sys_user'"   display-field="'name'" display-field="'email'" value-field="'sys_id'" search-fields="'name'" page-size="100" ></sn-record-picker>

 

By doing this small change it shows email id you just need to change one parameter in sn-record-picker for email display-field="'email'" 

Result 

SarthakKashya2_0-1714371251293.png

 

Please mark my answer correct and helpful if this works for 

 

Thanks and Regards 

Sarthak

 

Sarthak, thank you so much for your help. I was able to get it working.

Under the user reference field, I want the user phone, ciry state to be dynamically listed based on the reference field selection. How do I do that?

Also On click of Save Changes button, I want to call a script include and display a message on this popup as Success or Failure

 

 

maryc
Tera Contributor

How do I set the default value of the sn record picker to default to current loggedin user?