gravity view page

Gravity Forms
21 October, 2024 06:24:17
ehsanchch
Topics: 1
Messages: 3
I have implemented the following code on a gravity view page, but the file is automatically downloaded as soon as the page loads. Is it possible to display the word "Download" so that the file is only downloaded when the user clicks on it?

[e2pdf-download id="2" dataset="{entry_id}"]

Another question: Is it possible to change the word "Download" to something else, or define a button for it?

21 October, 2024 06:28:24
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

1. Please check if you didn't set the "Auto" download by default.

2. Yes, you can change it in the E2Pdf Template Settings or via the "button_title" attribute added to your shortcode: https://e2pdf.com/docs/shortcodes/e2pdf-download#style
We would really appreciate your feedback at WordPress.org!
21 October, 2024 07:56:43
ehsanchch
Topics: 1
Messages: 3
That’s great! Thank you for your quick response.

Is it possible to design a custom button based on the Visual Composer plugin? I want to use the button code from this plugin.

For example:

[vc_row][vc_column][us_btn label=" DOWNLOUD" link="" align="center"][/vc_column][/vc_row]
21 October, 2024 08:01:28
ehsanchch
Topics: 1
Messages: 3
After, is it possible to remove the name of the file in the saved time?
21 October, 2024 08:04:46
E2Pdf
Support
Topics: 7
Messages: 3345
You can try to add required classes to the [e2pdf-download] shortcode to have the styled output via the "class" attribute:

[e2pdf-download id="1" class="additional-class"]

As for the name, by default, it uses the Entry ID. You can change it within the E2pdf Template settings in "PDF Name": https://e2pdf.com/docs/templates/builder/settings#pdf. It's possible to use also field slugs.
We would really appreciate your feedback at WordPress.org!