Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started