Form Validation

Discussion in 'Cold Fusion MX' started by heliosconcept, May 5, 2007.

  1. I have a form I am trying to get to work. It appears to submit ok, but it does not validate the form.

    This is suppose to work in CF? Right?
  2. KCWebMonkey

    KCWebMonkey Perch

    Any way you can provide more information? You really gave us very little to work from.
  3. thingwarbler

    thingwarbler Perch


    if you're trying to use CFFORM you need to make sure that the js scripts are in the CFIDE folder within the site that's using it -- when CFFORM generates the validation javascript for the browser, it sets up a call to two js files to make things work. The page won't break if they're not there, but your validation will not kick in, and everything will be processed regardless of what you've set up.

    IIRC, CF only installs those in it's home directory, not in each site directory on the server. So, you need to copy them from the CF root dir on your dev server and drop them off in the root of your site on the JH servers.
  4. twodaend

    twodaend Guppy

    I have a similar situation where my validation does not work. I'm using a MX7 Dev server so would it be ok to copy the CFIDE folder to my site home directory considering JodoHost is using MX6.
  5. Rossv1

    Rossv1 Perch

    I don't think that copying the CFIDE folder will work. It sounds like the CFIDE mapping needs to be fixed in CF Admin.
  6. manopb

    manopb Perch

    It has always worked for me.:)
  7. tanmaya

    tanmaya APAC Operations Staff Member

    Correct. It should work. It is just a javascript that is used for client side validation. Mapping (actually adding a virtual directory /cfide) is needed because our copy of this folder is physically located outside your doc root.
  8. lanasingh

    lanasingh Guppy

    Hello. I have some basic form validation going on with javascript that I run on "onSubmit". It returns true or false. However, even with when the form returns false, with the Flash Uploader in the form it submits anyways. Is there a way to disable this submission when the form validation returns false?


Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services