I have a script that runs the onLoad event in a form.
This script changes the default view and adds a custom view that is dynamically created based on a fetchxml we are constructing according to some data from the form.
The fetch results are correct, and the view is set correctly if I use the method Xrm.Page.getControl("productid").getDefaultView() after the form has loaded:

Then i click to see the results of my custom view and:

That's my code script, if you need more details i can publish it all
let viewID = "{55ca1807-fb56-4b6f-8e6f-4833d8eea873}";
formContext.getControl("productid").addCustomView(viewID, "product", "Productos activos por fetch", fetchXml, layout, false);
formContext.getControl("productid").setDefaultView(viewID);
However, the problem arises when I press "Enter" or "Search" in the field, so that it doesn't show recent values but rather those from the default search. The default search for this field is overwritten before executing my script. Any idea why the default view is being overwritten?
Thank you very much for your guidance.