Download certificates
Autor: Rajiv S.
Besucht 1320,
Followers 2,
Geteilt 0
Hi,
I wish to add a web page where participants in our event could visit an download their participation certificates in PDF (already generated).
1. They should be able to input their 1-first name and 2-email id and then correct certificate (using the file name which contains firstname-emailid
any one any idea?
i could use ready made html code
Gepostet am
You could use the restricted pages for that.
Make a page for each person and on that page you make a download button and the download should be the certificate.
This is possible without special code.
Why is it you simply not mail the certificates?
Autor
@john S. 1. There are over 6000 certificates for one event and there are dozens of events each year.
2. Mail them: of course, that is what we have been doing. But for that large number it is not practical so that is why we need a better system
OK
Then something like this: https://stackoverflow.com/questions/45895630/form-input-box-to-download-files
I guess you want a page with 2 fields
One field for first-name
and one field for email
Then a button: "Download certificate"
When the button is pressed then the page tries to download a file named:
firstname+email.pdf
Am I close?
Autor
Yes. Exactly
Hello,
The script proposed by John is better because the downloaded file is possible with a known filename or file ID and you have just only one field to fullfil. So errors are limited.
I have quickly integrated this one into my demo: https://wsx5demo.afsoftware.fr/index.html
Enjoy!
Axel
I have an example file attached
Usage:
For an event you make a subfolder on you site.
In here you place the cerficates for that specific event.
And you also place the attached unzipped html file.
In your X5 project you make a page with an iframe.
The initial source for the iframe is the newest event.
On the same page, you place html objects for each event.
Like it is done here: https://bramminginfo.dk/egnsmuseet.html
Each link will fill the iframe with a new "target".
The targets should be the download-html file that is in a folder for each event.
The download will be from the same folder where the html-file resides. That is why the download html should be together with the pdf files.
You can make a headline in each html-file telling the user which event he is downloadin certificates for.
Example: Download your certificate for the seminar "From stone axe to computer"
Hope you understand what it is I try to tell.
@Rajiv
Did you find a solution?