Forums

PDF, TCPDF, saving link in a table

sammy979 19 Feb, 2021
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 21 Feb, 2021
1 Likes
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
sammy979 22 Feb, 2021
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 22 Feb, 2021
1 Likes
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
You need to login to be able to post a reply.