The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to restrict auto search for reference fields in UI page

Ksnow
Tera Contributor

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 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

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Ksnow 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar 

Thanks for your response.

 

Could you please guide me to disable auto-search?

 

Regards

@Ksnow 

I doubt this can be achieved

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Is there any official documentation from ServiceNow stating the limitations?

Please share!

Thanks a lot.