Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed the JS Dependencies section; reason: PEBKAC

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
titleMANAGING DEPENDENCIES

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:

  1. Add File_B.js first and then add File_A.js 
  2. 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
  3. Copy File_A.js; any new file you add gets added to the "bottom" of the load list.... so you can either
    1. Delete File_A.js and then re-upload that same file (make sure to copy the necessary information such as Description etc.), OR
    2. 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
      Image Removed

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:

...