Form show old data after send form
-
Hello,
i’m aplying via shortcode a contact forms 7 form into a custom code page. I’m getting data using $_POST data to initialize form fields. Then i’m using “wpcf7mailsent” to send form using $(‘#customizerForm’).submit(); in ajax. I’m doing this using this way for some reasons. All send ok, but after “wpcf7mailsent” event before change to next page (where i’m getting data and save to database) form change new data by old data i recived using $_post , but when i get sended data into next page their recive all ok .
I read it could be for data restoration of contact forms do when some fails, but in my case nothing fails and i can’t find any documentation about this.
Some reason this is happening?
This is my form code into contact forms 7:
[hidden orderId default:post] [hidden productId default:post] [hidden pFormat default:post] [hidden pDisseny default:post] [hidden saveState id:saveState "3"] [hidden pFoto class:display-none id:pFoto default:post] <div class="inputFields"> <div><label>Nombre <span class="asterisc">*</span></label>[text* tNom default:post]</div> <div><label>Fecha nacimiento<span class="asterisc">*</span></label>[date* tData default:post]</div> <div><label>Hora nacimiento<span class="asterisc">*</span></label>[text* tHora default:post]</div> <div><label>Peso(kg.)<span class="asterisc">*</span></label>[number* tPes default:post]</div> <div><label>Estatura(cm.)<span class="asterisc">*</span></label>[number* tEstatura default:post]</div> </div> <div class="buttons-layer" > <div class=""> <div class="button-layer"> <a class="style-button" id="enreraButton"> <span class=""> <span class="">Atrás</span> </span> </a> </div> <div class="button-layer"> [submit "Continuar"] </div> </div> </div>
Thank you
- The topic ‘Form show old data after send form’ is closed to new replies.