Hello to everyone,
i’m trying to add custom fields in the quote pdf but i got errors and errors.
I have already placeded some modify in the template without problem but i can’t understand how to fix this issue.
I followed the wiki for custom filed.
I have made the record in the app (image1)
I have put the string in the code (image2)
I got erros … (image3)
Ok got the error.
If the custom field is empty in the client form, the app show the error.
with the print_r($custom_fields), in fact, the empty fields do not appear in the array.
How to avoid the error if the field is empty ?
I have try with an if statement like this one but i have had no success… if the custom field is empty, the pdf generation give me the error.
this is my try: