Background:
CRM 2016 Introduced Auto-complete feature on web forms. This allowed us to help users in filling out data faster and easier without creating any unwanted relationships.
Sample: Auto-complete in Dynamics 365 controls
For ex, if we wanted Users to choose from list of cities, we can configure it and user will see dropdown with autocomplete.
It was great but unfortunately it was restricted to Web forms, and not extended to Mobile App.
Mobile Autocomplete:
To complete the puzzle, CRM has Autocomplete control on phone as well, but it is different to one on the Web form.
The Autocomplete control on phone is restricted only to phones. And it can be configured via Entity with data or via Option set.
This feature enables Users to save time to enter data which is more critical on phones and tablets
Example and Steps to enable AutoComplete control
- Auto complete will work on text fields (Single line of text).
- Let us assume, that we want autocomplete on the City Field on Account form.
- Add the “City” field to form.
- In field properties, navigate to the control tab and Add “Auto-Complete” control.
- Select the source options. You can select one of the 2 options
- View (of an entity)
- Option set
In this example., we are selecting a Custom entity “City” which has names of cities.
- Select View, and Edit the options to configure the data source for the view as below.
You need to enter the Entity Name and the View of that entity
- Configure the Field Option to select the field you want to bind the data. It can only be a Single line of text field.
- Do not forget to set this control for Mobile and Tablet Forms like below:
- You can now see the Auto complete functionality on the field on Mobile/ Tablet app like below:
- We can achieve the same result using the Option set instead of Entity View.
Note:
Entity used in the View should be enabled for Phones, or else the Auto-Conplete will show error on the form.
Please put your comments for queries/ suggestions below
This is exactly what I need for the default web client. Why is the linked solution for the web client (“Sample: Auto-complete in Dynamics 365 controls”) limited to a static set of options and needs a JavaScript instead of dynamically offers values from other records like the mobile client do in this tutorial?
LikeLiked by 1 person
Hi Al,
If you are using D365 v9 – july release, this is now possible on Default Web client as well without the need of JavaScript. The blog was written when v9 was not released. You just have to enable the Auto Complete control for web as well. Earlier this option was disabled for web. Hope this helps
LikeLike
Hi Somesh,
thanks for your quick reply. I saw that option but I allways get an error alert (when the form loads) after enabling the feature for the web client. We use a custom entity at this place but this should not be a problem. Do you habe any hint for me?
Kind regards
Al
LikeLike
HI Al,
Sorry for the delayed response. I spoke too soon. THe control only works on the Unified interface on Web, not on the web client.
LikeLike