SyntaxFix
Write A Post
Hire A Developer
Questions
You don't need to call ValidateForm() twice, as you are above. You can just do
ValidateForm()
if(!ValidateForm()){ .. } else ...
I think that will solve the issue as above it looks like your comparing true/false to the string equivalent 'false'.
true/false
'false'