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!
