Skip to main content
Inspiring
July 11, 2012
Question

cfinput validation is not working

  • July 11, 2012
  • 1 reply
  • 589 views

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?

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    July 14, 2012

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