I am currently using a Magnific Popup iframe to display a form (created with Machforms).
<div align="center">
<a class="popup-link" href="...machform/view.php?id=3717">
<img src="images/image.png">
</a>
</div>
Once the form is submitted, it redirects to another iframe popup containing a link for downloading a PDF, which opens in a new tab.
Thank you. Your submission has been successful! <br/>
<a href=".../downloads/TEST%20DOWNLOAD%20PAGE.pdf" target="_blank">Download file here.
</a>
When clicking on the 'download file here.' link, I want the popup to automatically close. However, I have tried methods like closeOnContentClick and overriding the close function without success.
If anyone knows how to achieve this, I would greatly appreciate your help!