Skip navigation
Currently Being Moderated

cfinput validation is not working

Jul 11, 2012 1:33 PM

I have a CF8 cfform which contains several cfinput tags set to required.  If I submit the form without fillign otu those fields, I do get the popup message displaying the error message(s) but when I click ok on that popup, it still submits the form.

 

THis is a large form which I have split into 7 sections with only one visible at a time - kind of like a custom tabbed interface.

 

WHen the page loads, I am using jquery to hide all but the first tab.  The last tab which contains the submit button is hidden on page load.

 

It seems like if I keep the submit button visible on page load, the cfform validation works, but I want the submit button to only be displayed on the last step of this tabbed form.

 

How can I get the cfform validation to work when the submit button is hidden on page load?

 
Replies
  • Currently Being Moderated
    Jul 14, 2012 5:38 AM   in reply to bdee2

    Given you initially hide the submit button, how then is the form submitted?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points