- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 09:28 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 11:14 PM
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
Please mark my answer correct and helpful if this works for
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 07:17 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 07:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 11:14 PM
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
Please mark my answer correct and helpful if this works for
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 08:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 09:07 AM
How do I set the default value of the sn record picker to default to current loggedin user?