I am using an external JS library file in the Modern Designer. Example of basic usage of the library:
new QRCode(document.getElementById("current"), "url.com");
The library will then add a QR code to the element selected.
In the Modern Designer, we can't simply call document.getElementById but is there a way to pass an element as an argument? With functions like LFForm.getFieldValues or LFForm.setFieldValues I do not see a way to get the element itself to then pass it as a parameter to my object constructor. Would it be possible at all to use this library since it is making changes to the DOM directly?