Skip to main content
DiSturbeDViSionS
Participant
March 12, 2008
Question

Checkbox "required" attribute not working

  • March 12, 2008
  • 3 replies
  • 314 views
Pretty simple, you'd think. I've got a cfinput tag using the checkbox type, a name, required="YES" and a message to display. When the checkbox is not checked, the form submits a message saying it must be checked to continue. Well this happens regardless of if the checkbox is checked or not, the user can't continue to the next step of the form. What gives? Works fine on my development box but not on the server. Using Coldfusion 8. Any ideas?
    This topic has been closed for replies.

    3 replies

    DiSturbeDViSionS
    Participant
    March 12, 2008
    Interesting!! No I can't. Must have something to do with the fact that we have Coldfusion installed in multiserver. I'll have to discuss this with our webmaster and figure this out.

    Thanks for the info.
    DiSturbeDViSionS
    Participant
    March 12, 2008
    That was the first thing I checked. It's mapped to /CFIDE/scripts/. The cfform.js resides. What do you mean by accessible to browser though?
    Inspiring
    March 12, 2008
    quote:

    Originally posted by: DiSturbeDViSionS
    That was the first thing I checked. It's mapped to /CFIDE/scripts/. The cfform.js resides. What do you mean by accessible to browser though?


    Can you navigate to /CFIDE/scripts/cfform.js in a browser? Check that the /CFIDE/scripts directory is readable for anonymous users, for a public site, or that is is readable for authenticated users, for a private site.

    Also, do you have javascript debugging enabled in your browser? There may be a bug/issue in the javascript code.
    Inspiring
    March 12, 2008
    Check that the script directory is installed on the server and accessible to browsers.