web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / JavaScript webresource...
Power Apps
Answered

JavaScript webresource for events

(0) ShareShare
ReportReport
Posted on 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,

I have the same question (0)
  • Verified answer
    thomasfnorthrup Profile Picture
    252 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 101 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard