Copy link to clipboard
Copied
Hi friends,
I was trying to figure out the way how to add a message when all my checks are valid, i mean, after you press the submit button (if you validations are ok) then should appear a message like "Thank you! all your info has been update successfully".
I tried with JavaScript with an "alert("message");" into my SpryValidationCheckbox.js 
but im not sure where to add it ![]()
all suggestions will be welcome!
Copy link to clipboard
Copied
A thankyou message should appear after the form is successfully submitted, not after validation. So put the thank you in your server side script that is processing the form.
Copy link to clipboard
Copied
Thank you for your answer bregent,
Ok im going to be honest, this form have an image upload, so after submit i have an Ajax that show you "Uploading image, please wait" unfortunately is no possible to do it in the server side.
I'm just want to know, where is the last "return" into the JavaScript that let you send the information?
I will really appreciate any help!
Copy link to clipboard
Copied
I only added one line -- return ray.ajax(); -- when all validation has been passed right before return come true.

I wish I could do it with the Spry Validation too. Any ideas?.
Copy link to clipboard
Copied
it works!!! ![]()
as soon as possible i will post the solution.
best regards
Find more inspiration, events, and resources on the new Adobe Community
Explore Now