Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

submit changing fields back to first values

$
0
0

Replies: 0

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


Viewing all articles
Browse latest Browse all 59525

Trending Articles