- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 12:20 AM
Hi,
We have UI action "retrieve document" in the " HR form" where we have field called "user". On click of that UI action, subject person name should get auto populate in that user field, but i am getting user record, name is not getting auto populate. Is there any resolution for the same?
Regards,
Ramya.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 12:57 AM
I got the issue. Could you please share the script screenshot. So that I can guide you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 01:25 AM
Is the user field is referenced field?
And please share the screenshot of population of record in user field as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:22 AM
Hi, I did some changes in the code, value is populating but it is taking case number instead of subject person name.
dialog.setPreference('sysparm_subject_name',g_form.getDisplayValue('subject_person'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:27 AM
Change the User type - lookup select box and select the field as name and check it.
User field is on which table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:32 AM
sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:36 AM
Can you please share the screenshot from where you are fetching the subject person from the form.