I am producing a form to submit calibration data and as such, each submission needs to have a unique, incremental, not random number.
The whole form is designed and I finally got my head around the PDF design, so now the Save+ Download PDF works too.
What I have done is use the {cf_id} tag for the certificate number. In theory this should work, however the PDF seems to be created before the form is submitted and the PDF just shows the tag and not what has been put in the table.
In my parameters, the HTML to PDF is after the DB Save, so I expected the form data to be saved to db and load the cf_id, however in hindsight I guess the required calibration number should be added to the HTML onload?
Think I have gotten myself confused and not sure what the best way to proceed is.
If I need my cert numbers to start at 3000, should I query an existing field first to get the next number, onpage load so that it is available when onsubmit and html to pdf takes place.
OK, I am rambling now . . . . .๐
The whole form is designed and I finally got my head around the PDF design, so now the Save+ Download PDF works too.
What I have done is use the {cf_id} tag for the certificate number. In theory this should work, however the PDF seems to be created before the form is submitted and the PDF just shows the tag and not what has been put in the table.
In my parameters, the HTML to PDF is after the DB Save, so I expected the form data to be saved to db and load the cf_id, however in hindsight I guess the required calibration number should be added to the HTML onload?
Think I have gotten myself confused and not sure what the best way to proceed is.
If I need my cert numbers to start at 3000, should I query an existing field first to get the next number, onpage load so that it is available when onsubmit and html to pdf takes place.
OK, I am rambling now . . . . .๐