Processing of custom form tags

[ad_1]

Hi,

I need to create my own checkbox input because the option needs to be dynamic. This all works fine. The only problem is, if the option is not checked by the user, then the form submits the custom tag in the email in square brackets. I would rather this is not shown to the client. So, I tried to remove it using wpcf7_before_send_mail. However, this removes the tag completely and also removes the data if the option is checked.

If I use your built in checkbox tag with ‘Exclude lines with blank mail-tags from output’ selected, then I don’t get this problem. But that is only useful if the option is static and doesn’t change.

Can you please suggest how I can get round this problem. Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer