How to restrict auto search for reference fields in UI page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 11:19 PM
Hello @Ankur Bawiskar @Amit Gujarathi
I am facing the issue with reference fields in UI page, I had written the logic to filter the records in the reference fields based on another field selection which is working fine only when we click on the magnifier and search for the records.
In general, we can search with any records which is irrelevant still it shows the record and it's a mess.
For example: I have filtered the records to show in field B based on field A selection. Meaning that only A related records to be shown in B like Test1, Test2 & Test3 but unfortunately when I trying to auto search with other name like Demo or something else it shows up and can submit the page with wrong info.
How to restrict the auto search if correct record is not being entered?
Appreciate your help! Thanks in advance.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 11:41 PM
reference fields in UI page are not same as reference fields in platform.
I don't think any workaround for this is present, but you can try to disable the auto-search which is happening possibly because of AjaxCompleter
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 12:12 AM
Hello @Ankur Bawiskar
Thanks for your response.
Could you please guide me to disable auto-search?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 12:38 AM
I doubt this can be achieved
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 08:32 PM
Is there any official documentation from ServiceNow stating the limitations?
Please share!
Thanks a lot.