Expand my Community achievements bar.

How to pass parameters to a PDF?

Avatar

Former Community Member
Dear All,



I have a problem in one of my forms. That is the description:



I need to add some info to my pdf, for example at the begining I need an ID, because at the form:ready method I connect to a DB to retrieve all my users data. I need also the name of the user who is executing the form and other variables.



My solution was to include it into the pdf name, (for example file_iddata_username.pdf). Mixing event.target.path with the split instruction I was able to get them. But then my boss told me that we will need at least 5 parameters more.



Obviously we cannot add 7 parameters to the file name as I have explained before. So what I thought was to write a txt file and open it in my form using the javascript.



The fact was that iI have been searching about How to Open a file inside a form and I have found nothing. So it throws me some questions:

Has anybody open a file with a form? is this possible?

if not? What will be the solution to my problem?



Thanks in Advance.

Ruben.
0 Replies