Thanks for your reply. If the wrong code is entered the validation show if works and the "Invalid information, please check your entry and try again" message shows under the input field, but when the correct code is re-entered and submitted the form does not clear and of course the invalid information text along with all the other form info is still visible. I need the form to clear Find the latest version of the page attached.