Quick View Forms in Dynamics 365 are a nice way to display data from a related record without having to write any kind of code to retrieve it. The screenshot below shows part of an Account form, which has a lookup to a Parent Account. The Customer Details section in the bottom part of the screenshot is a quick view form, which is displaying the Parent Account name, email and phone number. By default, this quick view is hidden if the related record, in this case the Parent Account, is empty and shown if it is populated.
If you don’t want to put the quick view form in its own section and instead want to interact with it directly you can use the function Xrm.Page.ui.quickForms.get("PrimaryContactQuickViewForm");
This will return an object that lets you interact with the quick form view. It is important to note that this has a setVisible() method, but from my experience it hasn’t worked as well as it should. Instead of this, by adding on getControl(), you should get back an object array, where each item in the array is an element on the quick view form.
For example, the second object in this array would correspond to the Email field. If I interact with the second object in the array and set visibility to false (add on .setVisible(false)), then the Email will be hidden from the Quick View Form.