Resco Mobile App is a boon for the Field Technicians; it’s crisp, it’s smooth and has a lot of functionalities that could ease the life of a Technician. Resco provides us Form Rules to perform many things in the face of onchange, onload and onsave event on the form.
We could say, Resco Form Rules are more than sufficient for your core and advanced needs.
But, there could be scenarios that are not simple to implement and cannot leverage the OOB Form Rules functionality.
The steps are pretty simple, as explained below:
1. We need to create an HTML that would be placed as an iframe on the form.
2. The HTML should have a reference to the JSBRIDGE.js (You can download the latest from here).
3. Then based on the onchange event described here, create a function.
4. Next, you need to call this function on load of the HTML page; this is the most important step.
We initially tried using the $(document).ready, but it didn’t work.
But, after calling the function as below did the trick for us.
5. Once you have the HTML ready, upload the necessary files to the Offline HTML section of Resco, and on the form create an iframe.
6. While creating an iframe, do not forget to uncheck the Delay Load.
Note: Unchecking the Delay Load makes sure that the HTML is loaded as soon as the form is loaded and hence it facilitates the binding of onchange event.