Event after formCheck completes?

sl sloanthrasher 19 Sep, 2019
Hi,
​
I'm working on a site using CFv4. It's an existing site with many forms, (100's), so upgrading isn't an option for now.
​
I need to do some actions after the validations done by formCheck. Basically, if the validation succeeds, I'll disable the submit button and display a message.
​
How can I react to an event after the validation and get it's status?
​
Thanks!
​
Sloan
Gr GreyHead 20 Sep, 2019
Hi Sloan,
​
First I suggest that you install CFv6 alongside CCv4 and recreate forms in CFv6 as you find the need to work on them,
​
What exactly is formCheck - that's not a term I remember from CFv4? I just took a look and do see it in the version I have installed.
​
Bob
sl sloanthrasher 20 Sep, 2019
Hi Bob,
​
FormCheck.js is the library used in CFv4 for field validation. From what I see, it is configured to validate fields wen the form is submitted. It checks for required, email format, etc.
​
Basically, I need to execute code after the submit button is pressed, and the form is validated to prevent multiple presses of the submit button, and only if the validation passes.
​
Sloan
​
PS
I my have found a solution, and will post if it works.
Gr GreyHead 21 Sep, 2019
Hi sloanthrasher,
​
Please see this FAQ for some CFv4 code that I think should do what you need with a little modification.
​
Bob
This topic is locked and no more replies can be posted.