Title: dynam
Last modified: October 29, 2019

---

# dynam

 *  [rudtek2](https://wordpress.org/support/users/rudtek2/)
 * (@rudtek2)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/dynam/)
 * I’m trying to create a form that will email to the email address on the page.
   
   I saw some tutorials that said I could use dynamic fields, but they don’t seem
   to work.
 * I have a function that returns the email address but I’m not sure what to do 
   with the actual form.
 * I tried adding a field `[dynamictext recipient-email uneditable "testid"]` where
   testid is my function calling the email, but it directly outputs that code and
   I don’t see anything on dynamictext fields. Can someone let me know what to do?
 * I also tried this code:
 *     ```
       function wpd_cf7_handler($contact_form) {
         $form_id = $contact_form->posted_data['_wpcf7'];  
         if ( $form_id == 760 ) {
           // Everything you should need is in this variable
   
           //get the member id
           $memberemail = $contact_form->posted_data['testid']; 
   
           //change the mail recipient...
           $contact_form->mail['recipient'] = $membermail;
   
           //var_dump($member);
           var_dump($contact_form);
   
   
           // I can skip sending the mail if I want to...
           //$wpcf7_data->skip_mail = true;
         }
       }
       add_action("wpcf7_before_send_mail", "wpd_cf7_handler");
       ```
   
 * BUt it’s not working either. Even trying to dump $contact_form.
    -  This topic was modified 6 years, 7 months ago by [rudtek2](https://wordpress.org/support/users/rudtek2/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/dynam/#post-12075300)
 * See [Welcome to Support Forum — Please Read Before Posting](https://wordpress.org/support/topic/welcome-to-support-forum-please-read-before-posting/)
 *  Thread Starter [rudtek2](https://wordpress.org/support/users/rudtek2/)
 * (@rudtek2)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/dynam/#post-12076583)
 * what does this mean? Did I do something wrong? This isn’t resolved. I’m not sure
   why it’s marked as if it is.
    -  This reply was modified 6 years, 7 months ago by [rudtek2](https://wordpress.org/support/users/rudtek2/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dynam’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rudtek2](https://wordpress.org/support/users/rudtek2/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/dynam/#post-12076583)
 * Status: not resolved