• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: File Download Button

File Download Button 9 years 6 months ago #32714

I am struggling to create a javascript to add to a normal rsform button to download a .pdf file from a specific location.

Please help
The topic has been locked.

File Download Button 9 years 6 months ago #32734

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
There is no "rsform button", there are standard HTML buttons (which RSForm!Pro also generates). Why not add a simple link to your PDF file ?
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The topic has been locked.

File Download Button 9 years 6 months ago #32744

That is what I want to do but not sure how or where to add the link on the button as whetever I do donl't want to work..

Please advise - perhaps I am missing something

Thank you
The topic has been locked.

File Download Button 9 years 6 months ago #32745

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
You can simply add a free text field to your form. It will contain the HTML of your link:
<a href="/path/to/file.pdf" target="_blank">Download PDF</a>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The topic has been locked.

File Download Button 9 years 6 months ago #32746

Not sure you understand what I want..

I want to add a normal RSForm button and when you click on the button it must either download or view the .pdf.

Where do you add what code in the button adtibutes to make it happen?
The topic has been locked.

File Download Button 9 years 6 months ago #32747

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
I am trying to understand (based on your lacking details) and help you with this. Given that you don't know Javascript, i suggested adding a link as it does not require any coding skills.

If you are keen on using a button for this, you can try adding a regular button to your form, and use something like this in its Additional Attributes area:
onclick="window.open('http://www.site.com/path/to/file.pdf');"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The topic has been locked.

File Download Button 9 years 6 months ago #32748

You are correct my Javascript knowledge is not that great.
This is exactly what I wanted thank you very much!!
Last Edit: 9 years 6 months ago by Emendymusic.
The topic has been locked.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!