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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans