web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Filtering values for Auto-Complete custom control on a text field in JavaScript?

(0) ShareShare
ReportReport
Posted on by

I have added the Auto-Complete custom control on a text field for postal code on an entity. The postal codes are loaded from an custom postal code entity in which we load postal codes for different countries. However, we want only postal codes for the selected country (another field on the entity) to be shown in the auto-complete list. 

As I see it, this is not possible in the control configuration on the field and was thus contemplating doing this in Javascript, but can see no documentation nor any relevant methods on the control when browsing the object structure in Chrome development tools.

I miss the the flexibility provided by the Dynamics CRM 2016 as explained in this post: https://community.dynamics.com/crm/b/crminogic/archive/2015/12/17/design-auto-complete-text-controls-in-dynamics-crm-2016 

However, those parts of the Client API have been deprecated (as pointed out in the answers on this thread: https://community.dynamics.com/crm/f/117/t/305938).

Has anybody experience using the Auto-Complete control trying to configure it through Javascript? Any help would be appreciated.

Moreover, it seems the Auto-Complete on text fields does not initialize with existing field values: When loading the form on an existing entity that contains a value in the postal code field, the control shows the default value '---', which is incorrect.

We use Dynamics 365 Customer Engagement, Version 1710 (9.1.0.2437)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Mikkel,

    ATM it's not possible to configure autocomplete control in UCI the way you want. It will be possible to create own PowerApp Custom Control when it will be released this April.

    Article from Inogic you provided will work for Classic UI but not for UCI.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans