Instead of having the Browse and Edit specific JavaScript code in one textarea, use the new additional fields for Browse and Edit. Especially if the code is longer, it helps to have the code split up.
Another advantage is that the whole JavaScript is not always loaded but only for the respective form type.
Until now, you had to check the form type so that a certain code was only executed when the browse or edit form was loaded.
Adding JS code to the "Browse" field will execute it only when the Browse Form is loaded. The same applies to the Edit field.
Code in Edit & Browse will still be executed for Edit, Browse and Launch forms. (Especially for backwards compatibility reasons).
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
[Changed] Split up Form Custom Code JS
[Changed] Split up Form Custom Code JS
You do not have the required permissions to view the files attached to this post.