Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qSjoxssbgU/nFTEmzT+PjX
Power Apps - Microsoft Dataverse
Answered

JavaScript webresource for events

Like (0) ShareShare
ReportReport
Posted on 27 Feb 2023 13:55:59 by 180

Hello,


How should we create web resources ? Separate for each event load , save on field change?

 

or we can have 1 web resource on form ?

 

what would be best approach?

 

Thanks,

  • Verified answer
    thomasfnorthrup Profile Picture
    252 on 27 Feb 2023 at 18:35:43
    Re: JavaScript webresource for events

    Hello, thanks for reaching out. 

    You can have one web resource with all your JS code in it. You would create a function for each event you wanted something unique to happen with. Then when adding the web resource you can select an event or field change that will trigger a function, you place the name of the function in the space available. Then when event occurs it will call the function in the JS web resource added to the form. 

    Below is a link for doing this with model-driven apps. 

    Configure event handlers for model-driven app Main forms in Power Apps - Power Apps | Microsoft Learn

     

    Please mark as a solution or give kudos if this helped. 

    Good luck and have a great day!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
SadFox Profile Picture

SadFox 2

#1
stampcoin Profile Picture

stampcoin 2

Overall leaderboard

Featured topics

Loading started