Hello everyone,
I'm currently working on customizing a lookup field (FormStringControl without dataset) in Dynamics 365 Finance and Operations to filter results based on a "contains" condition rather than the default "begins with" behavior.
Here’s the issue I'm facing:
When I start typing in the field, the lookup only returns results that "begins with" the typed text.
However, when I press the lookup button, it does filter based on a "contains" condition, returning results that contain the text anywhere in the string.
So, it’s partially working, but not consistently. Ideally, I’d like the contains filter to be applied whether the user is typing in the field or clicking the lookup button. Any advice or examples would be very helpful!
Thanks in advance for any help!
Here's my code
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156