I'm trying to open up a pdf in a new tab automatically when clicking on a link. How would I go about doing this? 


At the moment I'm able to redirect the link to a new page and on the preparation it downloads the pdf prompting the user to download the pdf and upon opening the pdf it open up on the default program. The problem is the pdf doesn't open up automatically after clicking the link and it doesn't open up on the web browser new tab.

Try the tag target="_blank".

<a target="_blank" href="yourfile.pdf">pdf</a>

Hi Nicholas Belo,

Can you please explain how have you implemented the current logic. If you are using  link to open the PDF then may be this will help. Please see the attached screen shot for help.

Add the below extended property :

target = "_blank"

Pranav Pandey wrote:

Hi Nicholas Belo,

Can you please explain how have you implemented the current logic. If you are using  link to open the PDF then may be this will help. Please see the attached screen shot for help.

Add the below extended property :

target = "_blank"

Thank you for your response. I have included the target as _blank already which works fine. I'm currently using a link to trigger this but it always prompts the user to download instead of automatically opening pdf.

Jardel Araújo wrote:

Try the tag target="_blank".

<a target="_blank" href="yourfile.pdf">pdf</a>


Thank you for responding where should I put the <a target="_blank" href="yourfile.pdf">pdf</a>

Hello Jardel


In the link you need to put target = "_blank" 

and after you need to change properties in download. 



Best Regards

Hello Nicholas, 

What you are looking for can be done with the iFrame widget that you can find in the Utilities (WebPatterns).

So, in this screen you open via the target=_blank, you put the iFrame widget and define the SourceURL as the download of the PDF you want. I believe that this should work.

Best Regards

Igor Khodak wrote:

Hello Jardel


In the link you need to put target = "_blank" 

and after you need to change properties in download. 



Best Regards

Thanks for the reply it's actually a url what could I do in this scenario.


Paulo Zacarias wrote:

Hello Nicholas, 

What you are looking for can be done with the iFrame widget that you can find in the Utilities (WebPatterns).

So, in this screen you open via the target=_blank, you put the iFrame widget and define the SourceURL as the download of the PDF you want. I believe that this should work.

Best Regards


Thank you for your response I can't use iFrame because it has to view on iPhone which doesn't do a good job support it.

Nicholas,

In the preparation of the screen that is accessed via the link, please use the download (as Igor said) at the end. Like this: Let us know if you have any further questions.

Nicholas Belo wrote:

Pranav Pandey wrote:

Hi Nicholas Belo,

Can you please explain how have you implemented the current logic. If you are using  link to open the PDF then may be this will help. Please see the attached screen shot for help.

Add the below extended property :

target = "_blank"

Thank you for your response. I have included the target as _blank already which works fine. I'm currently using a link to trigger this but it always prompts the user to download instead of automatically opening pdf.

are you calling a function on the link click that is generating the pdf ?