1
0
-1

Hi Team,

I have a JavaScript file that i need to add it to a library resource so that its accessible globally to all forms.

Can this be achieved?

Thanks,

Aman

  1. Sindy Tang

    Hi Aman, you can create your function in js library file as|


    this.functionName = function(param1, param 2,...)  {
        function here
    }

    In your form, refer to the function in the js lib as functionName(param1, param2, ....)

CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1

    Sure. Load the JS file using the JS Library component. Now, in the dashboard navigate to that form version and view its resources. You can select the JS Lib and click "Publish resource to another Library". Select either a project or organisation level library to make the script available to other forms.

    1. Unknown User (akohli)

      Thanks Tim.

      Can you also tell me how to access a function in a datafield from that library.?

    CommentAdd your comment...