...
- If this function is present in your custom HTML, the application will wait for this function to return true before proceeding
- After PreDataLoad() is complete, the application will inject the elementData field information. This information will be present when reloading a saved form or when loading a forwarded form.
- After the field data has been loaded, you can perform additional formatting or configuration with the PostDataLoad() function.
- If the PostDataLoad() funciton is present in your custom HTML, the application will wait for the function to return true before proceeding
Another way to use these functions for testing OUTSIDE your Forms inMotion environment is to trigger your functions with jQuery .ready events such as below.
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
var alreadyLoaded = false; $(document).ready(function() { PreDataLoad(); }); function PreDataLoad() { if (alreadyLoaded) { return; } alreadyLoaded = true; //your important loading stuff here PostDataLoad(); } function PostDataLoad() { //your important post loading formatting stuff here } |
...