Forums

hide form if javascript is disabled

SAGO 03 Feb, 2015
Hi,

Does anybody know what the best way be to hide the form when Javascript is disabled and show a message instead.
As it is know, I have a menu to ChronoForms » Chronoforms Display Form.
I don't mind changing it so that it points to an article and use the plugin if it's easier to do it in article.

I just don't want people to be able to fill in the form without filling the required fields.

Thanks in advance!

SaGo
GreyHead 03 Feb, 2015
Hi Sago,

The simplest way is to use CSS to set the the main form div to hidden and add JavaScript to un-hide it.

You shouldn't rely on client-side validation to check the data - use server-side validation to check the important elements.

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