Tagged: CONTACT FORM
Hello! I’m setting up a contact form that will direct users to a PDF file on our website. Is there any way that I can set this link to open in a new tab, either in the form builder or short code? Thanks!
Hey jaimemerz,
Thank you for the inquiry.
This is possible but you have to directly edit the enfold/config-templatebuilder/avia-shortcodes/contact/contact.js around line 234, look for this code..
form.attr('action', redirect_to);
location.href = redirect_to;
.. and replace it with:
form.attr('action', redirect_to);
window.open( redirect_to, '_blank );
This should open the redirect link in a new tab. Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings after doing the changes.
Best regards,
Ismael