String constants must end with a double quote inject js activity

Im having issues with double quotes I did try escaping the “” but cant do it without error TIA

Here is the code

(function() {
// Find the “Choose File” input element based on attributes
var fileInput = document.querySelector(‘input[type=“file”]’);

// Trigger a click event on the input element
if (fileInput) {
fileInput.click();
}
})();

Hi,

It’s restriction of ExpressionEditor. For now, can you try it as single line as the following?

"var fileInput = document.querySelector(‘input[type=""file""]’);if (fileInput) {fileInput.click();}"

OR

"function() {var fileInput = document.querySelector('input[type=""file""]');if (fileInput) {fileInput.click();}}"

Regards,