- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 09:49 AM
Hello,
I am looking for an easy way to autopopulate a users email whenever the user name is selected from a reference field (sys_user table). Is there an easy way to do this? Any suggestions are appreciated.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 10:47 AM
Oh, This only works on table based forms, not on the catalog form. For catalog, you would need to write a on Change client script and populate the email using a Glide Ajax call to server side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 09:52 AM
Hi,
You could add the dotwalk the email address from the User field on your form layout. For this you should configure -> Form Layout and add the User Field.Email field to your layout.
This would gets its done without any scripting.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 10:00 AM
This would automatically update the email variable field whenever a user name is selected in the user name reference field?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 10:03 AM
And this needs to happen on the form when the user is submitting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 10:06 AM
When you select a user on the form, the email address would be auto populated on the new field and this would be read-only. Does it make a difference whether it should be on submit or when a user is selected?