Buy Now
Sign in

PDF, TCPDF, saving link in a table

sammy979 , February 19 2021, 11:11
S
sammy979 8
February 19 2021, 11:11 #395980
Good morning, I found a lot of posts about my problem but I can't solve my problem.
I create a form with chronoforms, and with tcpdf I save the date in a pdf file and in a table on database.
I would need to get a link that allows me to download the file from a table created wid chronoconnectivity.
I try with the solution of this post: https://www.chronoengine.com/forums/posts/t100671/saving-pdf-link-to-database
but doesn't work.
Please can someone help me.
I'm probably doing something wrong as I'm not good with php scripts.
The form, and the table works fine, I can download the pdf file and save the file in the right folder.
Database save everything I want except the link to pdf.
Thanks
GreyHead 65
February 21 2021, 13:23 #396010
 1
Hi sammy979,
If you turn the Debugger on in your form On Submit event then you should be able to see the data item that you are creating form the form link. That will help you debug your code.
Bob
If you'd like to buy me a coffee or two, thank you very much
S
sammy979 8
February 22 2021, 08:49 #396020
Thank you so much for your reply.
I solved by myself the issue. I found that the problem was the choice of the type of saving on tcpdf. With "save & download" doesn't work, with only "save" everything is ok. Probably there was some conflict on the setup. I added the download option by inserting it in the post-sending message.
Thanks again and sorry for my english.
GreyHead 65
February 22 2021, 11:15 #396022
 1
Hi sammy979,
The problem is that if you use "Save & Download" then ChronoForms loses control of the process so no actions after that will be run.
Bob
If you'd like to buy me a coffee or two, thank you very much