Question T15105
Visible to All Users

Show clickable link in HTML type elements when exported as PDF

created 2 years ago

Hi All,

I have a survey where I need to add a static text that contains also a link.

I used an HTML element where I wrapped the text inside a <p>…</p> HTML tag. I also added the <a href="…" target="_blank">URL</a>
On the web page, everything is working fine, but when I export the page as PDF I have mainly one problem, the text of the HTML element can't be copied, because the HTML is rendered like an image and the link is not working too.

I tried to use other element types, like the "expression" one, that doesn't accept user input but at least the text can be copied in the PDF. The problem is that using the "expression" type, in the PDF is rendered together with the TEXT also a not usable input text.

Mainly my question is the following, is there a way to show a static text with a clickable link that continues to work in the exported PDF? Or if the link can't work in the PDF it would be great if it could be at least selected and copied by users.

Many thanks in advance.
Paolo

Answers approved by surveyjs Support

created 2 years ago

Hello Paolo,
Thank you for contacting us. Unfortunately, it is impossible to export HTML clickable links to PDF. If you wish to include hyperlinks into a PDF document, you may consider including a URL directly within survey texts.

If you wish to include a hyperlink to a survey's header/footer, you may programmatically create a LinkBrick as it is demonstrated in the following thread: Include a link to the survey PDF header.

Please let me know if you have any further questions.