Nishant Rana's Weblog


Home | Pages | Archives


How to – Access fields on QuickView Form (Control) through JavaScript in Dynamics 365

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.

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui-quickforms/isloaded

Hope it helps..

Advertisements

Discover more from Nishant Rana's Weblog

Subscribe to get the latest posts sent to your email.

Posted by Nishant Rana

Categories: Dynamics 365, Microsoft Dynamics 365

Tags: ,

5 Responses to “How to – Access fields on QuickView Form (Control) through JavaScript in Dynamics 365”

  1. […] Accessing fields on QuickView Form (Control) through JavaScript in Dynamics 365 […]

    Like

    By Accessing fields on QuickView Form (Control) through JavaScript in Dynamics 365 - 365 Community on May 3, 2020 at 4:13 PM

  2. […] Accessing fields on QuickView Form through JavaScript in Dynamics 365 — nishantrana.me […]

    Like

    By Power Platform Developers Weekly – Issue #9 – Power Maverick on May 14, 2020 at 2:51 AM

  3. 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

    Like

    By Butterfly on May 16, 2023 at 7:27 PM

    1. 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

      Like

      By Nishant Rana on May 16, 2023 at 7:41 PM

  4. thanks for the quick reply. yes, we have added form control and working on automatic record creation for that entity.

    Like

    By Butterfly on May 16, 2023 at 8:27 PM

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.