ReferenceError: Dialog is not defined


I am using a external file to organize the functions used on the form, but I am facing a error to use the Dialog on this file.
If I put the same code on the JS section on Plumsail forms, it works fine. But it was requested to store the functions on the external file. When code is called on the external file, it returns the error of 'Reference Error: Dialog not defined'.



Hi @Silvio,

Try adding window.Dialog = Dialog; to your form, similarly with window.fd = fd;