Default value for a reference field on UI page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 04:31 AM
How to set a particular caller name as default value in Caller field(reference) on an incident form UI page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 06:43 AM
What are you seeing, please share the code and what you are seeing as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 07:59 AM
The open record in a new window(eye symbol) near caller field opens the default caller record. But i dont see a display value
The code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 09:28 AM
just tried this and it works fine for me, in modal as well as full page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 09:45 AM
Yes this would pull the current logged in user but I want a specific user record to be a default user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2023 10:18 AM
Use this, pass the correct sys_id.
I have tried and this works
<g:ui_reference name="ref" table="sys_user" value="${gs.getUserID()}" displayvalue="${gs.getUser().getUserByID('62826bf03710200044e0bfc8bcbe5df1').getDisplayName()}" />
