Just (a/some) few things that I have learned thus far in my journey of Leap form development. A mix of lessons learned, product quirks, etc.
Adding Custom JavaScript Files
Warning | ||
---|---|---|
| ||
In Leap, when adding custom JavaScript files, add the dependencies first! |
Unfortunately, Leap does not allow you to change the order in which the JavaScript files get loaded... So if you have a situation where you are referencing a function from one file, e.g. File_B.js, into the other File_A.js, then you have three options:
- Add File_B.js first and then add File_A.js
- Extract the functionality from File_A.js that is referencing File_B.js, and create a new file `File_C.js` and place your code there and then upload File_C.js
- Copy File_A.js; any new file you add gets added to the "bottom" of the load list.... so you can either
- Delete File_A.js and then re-upload that same file (make sure to copy the necessary information such as Description etc.), OR
- Use the Leap Manager UI to "Copy" the File_A.js file (name it something different) — this will also help copy the description, so you don't have to worry about that — and then delete the previous File_A.js
Previewing Changes
While majority of the changes you make can be saved and previewed, the following changes require the application to be deployed in order to test:
...