Title: submit changing fields back to first values
Last modified: November 14, 2019

---

# submit changing fields back to first values

 *  [kirkgroome](https://wordpress.org/support/users/kirkgroome/)
 * (@kirkgroome)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/submit-changing-fields-back-to-first-values/)
 * I have a form where I’m using custom short codes to populate the fields from 
   a database. [text Address default:shortcode_attr] is an example. I also have 
   a custom wpcf7_before_send_mail function where on submit I save the data back
   to the database. My problem is when the user comes to the form if the address
   field is 123 main they change it to 567 east when the click submit the form goes
   back to 123 main. If they change it again to 987 west and click submit it goes
   back to 123 main. If they refresh the page now it will display 987 west.
    How
   can I get the page to display the data that was submitted or to do a full refresh
   on the page after it is submitted.
 * Thanks
    Kirk
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsubmit-changing-fields-back-to-first-values%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/submit-changing-fields-back-to-first-values/#post-12130824)
 * See [Getting Default Values from Shortcode Attributes](https://contactform7.com/getting-default-values-from-shortcode-attributes/)
 *  Thread Starter [kirkgroome](https://wordpress.org/support/users/kirkgroome/)
 * (@kirkgroome)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/submit-changing-fields-back-to-first-values/#post-12132176)
 * I’m using the get default values from shortcode and that works great when i first
   come to the page. but if I make changes to the data on the page and click submit
   when the pages refreshes after the submit it goes back to the data from when 
   the page was first loaded.
    Kirk
 *  Thread Starter [kirkgroome](https://wordpress.org/support/users/kirkgroome/)
 * (@kirkgroome)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/submit-changing-fields-back-to-first-values/#post-12148814)
 * If you would like admin access to the site let me know and I will set it up for
   you.

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

The topic ‘submit changing fields back to first values’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [kirkgroome](https://wordpress.org/support/users/kirkgroome/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/submit-changing-fields-back-to-first-values/#post-12148814)
 * Status: not resolved