Buy Now
Sign in

Event after formCheck completes?

sloanthrasher , September 19 2019, 18:12
S
sloanthrasher 31
September 19 2019, 18:12 #389256
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
GreyHead 64
September 20 2019, 08:24 #389259
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
S
sloanthrasher 31
September 20 2019, 13:13 #389262
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.
GreyHead 64
September 21 2019, 07:46 #389264
Hi sloanthrasher,
Please see this FAQ for some CFv4 code that I think should do what you need with a little modification.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
S
sloanthrasher 31
September 22 2019, 04:39 #389272
Awesome Bob, Thanks!!