How to add basic math question field ( as required ) in the Keap form?

Hey Keap Community, I want to add a basic math question input field ( required ) in the Keap form to handle spammy submissions.
What I’ve already did:
I created form and get its code from the keap and then added my custom HTML code

and also added a JS code like this

Why I’m Asking here:
I’ve added above shared code in the form and then JS out of the tag body. The issue I’m facing is that users still can submit form even if they not filling the required math question field. I’m still getting too much spammy leads. I want to restrict auto form submissions by bots. Please advise how I can solve this issue.

P.S: I’ve already enabled Google recaptcha as well but it seems it can’t handle bots spammy submissions. Please if you guys have any solution to handle this that would be a great help.

Thanks!

I think you are way overcomplicating this.
Just create a custom field in Keap that is a number field.
List whatever the math problem is, and make the custom field required.
then, set up a decision diamond after the form. If the numeric value is not what you want, then don’t do anything with the submission. If it is the number you want, let it go through your flow process.

Jeff

You’re really expert in Keap. Thanks!