Open a Custom Page either in a dialog or full screen within a Model-Driven App.
Upon clicking a Ribbon (Command Bar) button, the objective is to open a Custom Page either in a dialog or full screen within a Model-Driven App.
🔹 **Prerequisites:**
1. Ensure a Custom Page is constructed and integrated into your solution.
2. Have the capability to modify the Ribbon/Command Bar using the Modern Command Designer or Ribbon Workbench.
3. Ability to include and enlist JavaScript web resources for functionality.
To achieve this, utilize the 'navigateTo()' client API in conjunction with a JavaScript web resource linked to the button. This combination enables the seamless opening of the desired Custom Page based on user interaction.
JavaScript Code to Open a Custom Page