We're getting there!
1 - Uploading it to our website as a PDF fixed one issue
2 - Went through all of my variables to ensure there's no null entries (realized there were two "TextEntry" variables used zero times in Storyline. That fixed the other error. Now I'm getting this one:
actionator::exeJavaScript - Script1 is not defined
Using this code for downloading:
//Save form
const pdfBytes = await pdfDoc.save();
//Download the form
await import('https://unpkg.com/tiny-save-as/dist/tiny-save-as.esm.js')
.then(({default: saveAs}) => {
const blob = new Blob([pdfBytes], {type: 'application/octet-stream'});
saveAs(blob, filename);
})
.catch((err) => {
console.log(err);
});
}
I have a screenshot attached and a text document of the entire Javascript code. I cannot thank you enough for helping thus far, and if you can push me over the finish line I will be eternally grateful!