Events Planner Logo
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Custom form fields in PDF

Stef — Mar 06, 2017 03:14AM MST

Hi,

I'm currently looking for a way to display a custom created form field (company name) in the invoice PDF. So far it only shows first name, last name and mail adress. I tried adding it to the $data variable being passed, but I'm not quite sure if I'm trying to access the right data and if it will be printed in the PDF automatically then. PHP code example and about where to put it would be really great.
Anyone got an idea how to solve this?

Kind regards.


2 Community Answers

Stef - Apr 03, 2017 at 03:47AM MDT

Nobody got an idea? :(

rated : 0 Up Down

Stef - Apr 13, 2017 at 07:32AM MDT

Found some minuted and figured it out myself. :) In case anyone might ever need it:
You can simply add your custom form fields in /views/admin/reports/regis-invoice-1.php

The code is pretty self explanatory and it's easy to find where to put it and what to do. Of course you have to repeat it every time after an update. In general I wonder why it doesn't simply loop through $form_fields.

Kind regards.

rated : 0 Up Down

Post Your Public Answer