- 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 12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 01:07 AM
You might have used referenced field to populate the user field and just used -
g_form.setValue('user',g_form.getValue('referencedfield'));
Instead of the above use below:
g_form.setValue('user',g_form.getDisplayValue('referencedfield'));
Please mark as accepted if the solution helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 01:18 AM
I am fetching details from UI page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 01:08 AM
Hi Please find the screenshot.
<g:ui_reference name="User" id="user" table="sys_user" query="active=true" value="${sysparm_subject_person}" completer="AJAXTableCompleter" ng-model="user" displayvalue="${case_subject_person1.getDisplayName()}"/>