Creating Global Functions

Viewing 2 reply threads
  • Author
    Posts
  • October 25, 2019 at 9:13 PM #37395

    Rocky Machado
    Participant

    Hi – Not sure if I am using the right terminology, but How do I create global functions?
    for example, I my have a formatting function that I want to use in different Scripts that I create within a form.

    Thanks,
    rocky

    October 25, 2019 at 11:03 PM #37397

    Sam Moffatt
    Participant

    I created a form called ‘Script Manager’ which I use to put form scripts and then you can load them like this:

    document.getFormNamed('Script Manager').runScriptNamed('Form Logger');
    

    I use this idiom for a bunch of sample scripts you can find on the forum.

    October 26, 2019 at 7:55 AM #37407

    Rocky Machado
    Participant

    Sam – Thanks! That worked…

Viewing 2 reply threads

You must be logged in to reply to this topic.