Hey Experts,
I have build a marketing form with a lookup field. First obstacle I have is that for filtering the elements to show you can only use certain default views. Can somebody confirm this?
While finding a way around this I found the awesome functionality to inject JavaScript into the form to filter the lookup on render:
MsCrmMkt.MsCrmFormLoader.on("afterFormLoad", function() {
MsCrmMkt.MsCrmFormLoader.fillLookupFromSearch("2c1b6325-caf3-ec11-bb3d-000d3abf3315", "- Power Platform Webinar")
.then(function (r) {
console.log("Success performing search");
}).catch(function (e) {
console.error("Error performing search");
});
});
This is kind of working. When I move the cursor from one field to another field by selecting it with a mouse click, the entries are getting filtered as needed. However when using the tab-button to move into the field the field is loading all entries.
Somebody experienced this too and knows how to fix it?
Thx for your help!
Regards,
Alan