How to populate field using advanced ref qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 08:45 AM
Is there any way to call a script include using advanced ref qualifier and actually insert a value to the reference field and not just show the list of options using return. If I want to already set the value on the field using the advanced reference qualifier without using client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 09:17 AM
@Alon Grod Yes, instead of returning array of sys_id (multiple sys_id's), the script include should return only one sys_id and that will be auto selected in the drop down.
Please mark the appropriate response as correct answer and helpful.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 09:21 AM
Hello @Alon Grod
You can use setLimit(1) with While or use if Condition to return only one value which will populate on the form.
please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 09:56 AM
@Ravi Chandra_K please have a look on this example, instead that the field will already be populated with the value, the user needs to choose the value even though there is only one record. How can I insert the value so it will be displayed already inside the field without user action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 10:01 AM