Forums

Keep input data when form invalid

Elsie 06 Nov, 2010
I'm a Chronoform newbie, so this is probably a dumb question. I want to keep the entries in the form when someone fills in a form incorrectly, and not serve up a fresh blank form so they have to fill in details again. Please can someone tell me how? I've searched the forum, but can't come up with an answer.
Many thanks in advance!
GreyHead 06 Nov, 2010
Hi Elsie,

Please set "Republish fields if error occured" to "Try to republish" on the Form Editor General tab.

Bob
Elsie 06 Nov, 2010
Thanks for the quick reply. I had just found that option and tried it. It does keep the information in the fields, but unfortunately client wants "confirm email" which 1've achieved using javascript in the "on submit - before sending email" section. When the details are kept in the form, the line of javascript becomes visible instead of the email addresses. Have I put the javascript in the wrong place?
Thanks again
GreyHead 06 Nov, 2010
Hi Elsie,

JavaScript won't (or shouldn't) work from the OnSubmit Before box as it's executed on the server. PHP will work in there.

Can you tell me a bit more about the code you are using?

Bob
This topic is locked and no more replies can be posted.