May 3, 2020 3:38 PM
Suppose we have below Account’s Quick View Control on contact entity.



Now to access the email address attribute we can use the below Jscript on the Contact’s form onload event. 
The result à email address field is hidden in the quick view form.

Hope it helps..
Subscribe to get the latest posts sent to your email.
Posted by Nishant Rana
Categories: Dynamics 365, Microsoft Dynamics 365
Tags: Dynamics 365, Microsoft Dynamics 365
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
[…] Accessing fields on QuickView Form (Control) through JavaScript in Dynamics 365 […]
LikeLike
By Accessing fields on QuickView Form (Control) through JavaScript in Dynamics 365 - 365 Community on May 3, 2020 at 4:13 PM
[…] Accessing fields on QuickView Form through JavaScript in Dynamics 365 — nishantrana.me […]
LikeLike
By Power Platform Developers Weekly – Issue #9 – Power Maverick on May 14, 2020 at 2:51 AM
Hi Nishanth,
we had requirement to make fields editable on quick view form, So I followed your approach and tried below but it’s not working:
var quickviewcontrol= formContext.ui.quickForms.get(“logical_name”);
quickviewcontrol.getControl(“logical_name”).setDisabled(“false”);
I was able to make it as required, which seems to work as field is marked as mandatory (* in red)
var quickviewcontrol= formContext.ui.quickForms.get(“logical_name”);
quickviewcontrol.getControl(“”).setRequiredLevel(“logical_name”);
Can you let me know if we can mark fields as editable in quick view.
Regards,
Persis
LikeLike
By Butterfly on May 16, 2023 at 7:27 PM
Don’t think it is possible to have field editable in quick view form, try out form component https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/form-component-control#add-the-form-component-to-a-table-main-form?WT.mc_id=BA-MVP-5003692
LikeLike
By Nishant Rana on May 16, 2023 at 7:41 PM
thanks for the quick reply. yes, we have added form control and working on automatic record creation for that entity.
LikeLike
By Butterfly on May 16, 2023 at 8:27 PM