restezconnectes / send-pdf-for-contact-form-7

Send the PDF for Contact Form 7 plugin will allow you to recover the data yourself via your form to insert them into a PDF built and prepared by you.
https://restezconnectes.fr/tutoriel-wordpress-lextension-send-pdf-for-contact-form-7/
GNU General Public License v3.0
15 stars 17 forks source link

Multiple date format not working #56

Closed btxtiger closed 10 months ago

btxtiger commented 11 months ago

I have multiple date inputs in my form. But in the PDF, only the first shortcode gets rendered correctly using

[_format_myDate1 "d.m.Y"] // => 24.11.2023
[_format_myDate2 "d.m.Y"] // => [_format_myDate2 "d.m.Y"]

The other ones don't get rendered at all.

restezconnectes commented 11 months ago

Hi!

See and test my demo form : https://demo.restezconnectes.fr/send-pdf-for-contact-form-7-debug-form/

With:

Date : [date-332] Date autre format: [_format_date-332 "D, d M y"]

Date 2 : [date-438] Date autre format: [_format_date-438"d.m.Y"]

Date 3 : [date-506 ] Date autre format: [_format_date-506 "d-m-Y"]

Thanks