Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1340980

    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!

    #1341131

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.