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,
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.
Please mark as a solution or give kudos if this helped.
Good luck and have a great day!