Use case: form duplication for comments. It has happened multiple times now that I want to define a function that all forms can reuse, e.g. something triggered on a button press. This should be a global function that all local form scripts can reuse, but instead this function is then copied for each instance of the form.
So instead I could let the user define some global JavaScript as an optional component of the form that doesn't get copied at all for the comment duplications.
Use case: form duplication for comments. It has happened multiple times now that I want to define a function that all forms can reuse, e.g. something triggered on a button press. This should be a global function that all local form scripts can reuse, but instead this function is then copied for each instance of the form.
So instead I could let the user define some global JavaScript as an optional component of the form that doesn't get copied at all for the comment duplications.