Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.02 KB

File metadata and controls

19 lines (17 loc) · 1.02 KB
title description author ms.topic ms.date ms.service ms.subservice ms.author search.audienceType
avoid-dom-form-event Power Apps checker reference | Microsoft Docs
Power Apps checker rule reference for avoid-dom-form-event.
ecarrleemsft
reference
02/14/2023
powerapps
dataverse-maker
matp
maker

avoid-dom-form-event

Don't register or unregister handles to the Document Object Model (DOM) events of model-driven apps. This isn't a supported approach in Dynamics 365 or Power Apps. Use the supported Client-side event handlers instead.

Options

  • By default, violations are only reported when certain Xrm or Mscrm calls are made in the same file, so that violations outside of Dataverse are not reported. The requireXrm option, which is true by default, can be set to false to report all violations regardless of Xrm or Mscrm usage
    • Example: "@microsoft/power-apps/avoid-dom-form-event": ["error", { requireXrm: false }]