Forums

Validation message

cjmicro 25 Apr, 2011
Hi all... I have validation working but would like a validation message to show up by the submit at the bottom, something to the effect of "you have not completed all required forms, please scroll up and fill in the shaded fields and try again". I have searched forums and see where this is possible, but no clear explanation of exactly how to do it.

Can anyone share what has worked for them? I am using the CF Validation with mootools on the CF form management, nothing fancy, just the standard.

Thank you!

Cheryl
GreyHead 26 Apr, 2011
Hi Cheryl,

I think that you could do this with JavaScript, Live Validation adds a class to invalid fields so by searching for these when the submit button is Clicked you could then display a message if any are found.

Bob
cjmicro 27 Apr, 2011
I saw a few posts that suggested that (javascript) but I don't know how to do it, and was hoping someone would give me an example of a code that will work! I am not a programmer, and don't know javascript myself. Anyone have a working example?

Cheryl
GreyHead 27 Apr, 2011
Hi Cheryl,

Just about to go off on a little overnight trip but if you check my recent posts there have been a couple of others on this theme in the last day or so.

Bob
cjmicro 27 Apr, 2011
Ok i got the javascript from another post, and it works, just have to click submit 2x, but i think people will do that when nothing happens anyway!

Thanks,
c
This topic is locked and no more replies can be posted.