This repository contains a collection of JavaScript snippets designed for use in the Microsoft Power Platform. These snippets provide solutions for common customization scenarios in Model-Driven Apps, Power Pages, and other Power Platform components.
- Reusable Snippets: Each script is modular and can be easily integrated into your Power Platform projects.
- Customizable: The snippets are designed to be adapted to your specific requirements.
- Well-Documented: Each script includes comments explaining its functionality and usage.
-
Clone the Repository: Clone this repository to your local machine.
git clone https://github.com/itweedie/PowerPlatform-JavaScript-Snippets.git
-
Integrate the Snippets: Copy the relevant JavaScript files into your Power Platform solution and register them as web resources.
-
Configure Event Handlers: Use the Power Platform's form editor to configure event handlers for the desired fields, forms, or Business Process Flows.
The show-hide-based-on-StatusReason.js script demonstrates how to toggle the visibility of a tab based on the value of the Status Reason field (statuscode).
The threeWayFilter/example.html file provides a dynamic dropdown system for filtering locations by area, country, and city.
Contributions are welcome! If you have additional JavaScript snippets or improvements to existing ones, feel free to submit a pull request.
This repository is licensed under the MIT License.