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-09-2024 09:43 PM
I don't think so.
you can disable auto search but it's via system property and will impact all reference fields in instance, but not sure if it works with reference fields in UI page as well
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader