Thanks for such a brilliant contact form plugin. I have created a form that needed extra fields to be dynamically added by the user.
Use-case: The user needs to add authors, and I have no way of knowing how many authors will be needed. Rather than adding extra fields that might not be necessary for some users and might not be enough for other users, I have a little jQuery script that clones my div with the author information and also auto-increments the input (and span) field names/ids. So
<span class="wpcf7-form-control-wrap author1"> <input type="text" name="author1" value="" class="wpcf7-text wpcf7-use-title-as-watermark textInput watermark" size="40" title="Author"> </span>
is cloned as
<span class="wpcf7-form-control-wrap author2"> <input type="text" name="author2" value="" class="wpcf7-text wpcf7-use-title-as-watermark textInput watermark" size="40" title="Author"> </span>
It works perfectly, except I don’t know how to get these new, dynamically-added fields to be reported in the email that “contact form 7” sends on successful submit of the form.
Please help? Is there something I could add to the
on_sent_okhook or some other hook or something? If I can figure out this last part, I’d love to release this as an add-on module to Contact Form 7, since I didn’t find any plugins to add extra fields by jQuery.
- The topic ‘[Plugin: Contact Form 7] Report dynamically (jquery) added fields in the email?’ is closed to new replies.