For example, how to save data in a text box when the page is refreshed when the content is not legally submitted? No frame I know how to save with TP do not know how to save the data is saved with a session? If the submission does not pass the data back to the front end?
Reply content:
For example, how to save data in a text box when the page is refreshed when the content is not legally submitted? No frame I know how to save with TP do not know how to save the data is saved with a session? If the submission does not pass the data back to the front end?
Submitted data, in the controller can get it, and then error in the control, then the data assign to the template, it should be able to meet your needs, there is, in the JS submitted form or AJAX, stored in the Localstrage, controller error, jump to the template, It is also possible to read the data from the Localstrage.
It is best to let the user submit the data after the foreground is verified, but the server-side verification is necessary.
The form comes with the ability to submit an unsuccessful save data! There are, of course, some form options that are not refreshed with a dropdown box like the one below.
Do you mean to verify that it must be submitted to the server? Does the front end js do not validate? If you have to do a validation on the server and want to submit a failure to save the original data, then the data you submitted failed to render the form again, but I think this is not worth the candle. I recommend that you directly use ajax the send data to the server side to verify the wedding return front tips. So the user experience is good. Hope to help you