Title: Populate textarea dynamically
Last modified: August 30, 2016

---

# Populate textarea dynamically

 *  [warrebuysse](https://wordpress.org/support/users/warrebuysse/)
 * (@warrebuysse)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/populate-textarea-dynamically/)
 * I am trying to populate a textarea dynamically by content gotten trough $_POST
   or $_SESSION. Is there any way to do this?
 * The easiest approach would be to add a textarea myself an populate that.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

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

 *  [davmerit](https://wordpress.org/support/users/davmerit/)
 * (@davmerit)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/populate-textarea-dynamically/#post-6425422)
 * Take a look at [Contact Form 7 Dynamic Text Extension](http://wordpress.org/extend/plugins/contact-form-7-dynamic-text-extension/)
   it could be of great help.
 *  Thread Starter [warrebuysse](https://wordpress.org/support/users/warrebuysse/)
 * (@warrebuysse)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/populate-textarea-dynamically/#post-6425429)
 * [@davmerit](https://wordpress.org/support/users/davmerit/) I did, along with 
   [https://wordpress.org/plugins/contact-form-7-modules/](https://wordpress.org/plugins/contact-form-7-modules/)
   but the only possibility is capturing the $_POST variable. I had some variables
   stored in my $_SESSION and for that there is no solution.
 * What I’ve done now is I created a hidden field with Contact Form 7 and with an
   AJAX request to my server I got my $_SESSION variables (they don’t contain private
   data so that’s no problem). After the Ajax call I stored them in the value of
   the hidden field.
 * I’m aware it’s not the best solution as it’s a bit of a workaround, but it looked
   like the easiest way to do it..

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

The topic ‘Populate textarea dynamically’ 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/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [textarea](https://wordpress.org/support/topic-tag/textarea/)

 * 2 replies
 * 2 participants
 * Last reply from: [warrebuysse](https://wordpress.org/support/users/warrebuysse/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/populate-textarea-dynamically/#post-6425429)
 * Status: not resolved