I have a control script that is using the loadhtml method. The html file path is correct. the edit script window does not give me an error when I edit the script, but when I Apply and close the window I receive the Information icon on the control script image. I Hover over the script and get the error message.
It’s difficult to suggest a solution without seeing the script or the full error message. I would normally use a control script to affect the output of a template at the record level rather than for updating parts of the content; which is what loadhtml() would normally do.
Can the issue be reproduced if the loadhtml() function is used inside a standard script instead?
Thank you Rod, I actually did just that. I removed the loadhtml() method and placed it in a script. I used the control script to enabled/disabled the print section which the new script is tied to. So now the html loads correctly if the print section is enabled.
Excellent! I am glad it has worked!