You could take a reference to the PreSaveAction function.
Use Of PreSaveAction Function on List Forms
Only if PreSaveAction returns true, the created item will be successfully saved. You can use the captcha response result as the return value of PreSaveAction
, if the return value of the captcha response is the boolean type.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.