Question:
Can you correct the code below so that a user inputs his firstname and email id and his PDF certificate with same (firstname and email id) is downloaded from OOEcertificate folderAnswer:
This is a demo starting from your code that will fetch the value from the input box #url and will use that value to compose the url string that will be used to navigate the browser to the pdf download.Such behaviour is obtained with
window.location.href
that I commented to make the demo working here. On its behalf it will show the url in the console.If you have better answer, please add a comment about this, thank you!