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

no channels ("|") in the checkbox #41

Open kirichme opened 1 year ago

kirichme commented 1 year ago

Contact Form 7 supports channels ("|") in the checkbox as a separator of what the user sees and what is sent to the email. But what the user sees only goes into the PDF. Is it possible to fix this? Thanks!

restezconnectes commented 1 year ago

Hi!

I think it's works.

I've tried this in local mode:

In form: [select your-recipient "CEO|ceo@example.com" "Sales|sales@example.com" "Support|support@example.com"] In my PDF layout: TEST Recipient: Pipe: [your-recipient] Before pipe: [_raw_your-recipient]

It's worked!

kirichme commented 1 year ago

@Florent73 Hi! Yes, it works for the select field type, but it doesn't work for the checkbox or radio field type, I have already installed [your-recipient] Before sending: [_raw_your-recipient], and it still gives out the wrong thing, if there is an opportunity to fix it,(( I will be very grateful!

example: [checkbox test1 use_label_element "CEO|ceo@example.com" "Sales|sales@example.com" "Support|support@example.com"]

restezconnectes commented 1 year ago

Hi!

OK i see that!

Thanks

restezconnectes commented 1 year ago

Hi!

Can you testing the lastest version?

Thanks

kirichme commented 1 year ago

Hi, yes, it worked, thank you!

But now I have discovered that this only works if 2 short codes are output to the form at once [_raw_your-recipient] [your-recipient], if you put one [your-recipient], it returns empty information.