Work with Quick view forms in Dynamics 365/ CDS Client API

Quick view forms are wonderful features in Dynamics 365. And frequently you need to interact with quick view form from client side.

As you can see in the below screenshot, we have a quick view form of contact on the account form. Whenever we select the Primary Contact, the contact details like Email Address and Business phone are shown in the quick view form.

image

The name of the quick view form control on the account is – “contactquickform”. Below is the code to access the email address on the quick view control of contact form

var quickViewControl = formContext.ui.quickForms.get(“contactquickform”);

var emailAddressControl = quickViewControl.getControl(“emailaddress1”);

console.log(“Email address”, emailAddressControl().getAttribute().getValue());

There are host of methods that you can access for the quick view control. Refer to Microsoft Docs link to learn more.

Hope this works out as useful tip.

Debajit Dutta

(Business Solutions MVP)


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading