Skip to main content
Inspiring
March 11, 2013
Question

Server Side Form Validation

  • March 11, 2013
  • 2 replies
  • 563 views

Hello,

How can I make my form not submittable if the Javascript is disabled? The form uses CFFORM and

the validation page does the following: <cfif  name EQ "">Error<cfelse>Ok</cfif>.

How can I prevent the form from getting submitted if a user disables Javascript?

Thanks for your help!



This topic has been closed for replies.

2 replies

Participating Frequently
March 14, 2013

check this code i think it will help full for you

<script type="text/javascript">

    document.write("<input type=\"submit\" value=\"Submit Form\" />");

</script>

<noscript>

    <p style="color: red;"><b><i>Please enable JavaScript to continue</i></b><p>

</noscript>

Inspiring
March 11, 2013

Use javascript to display the submit button once the user has filled in the fields you want filled in,