reCaptcha in Newform.aspx

Mikello 81 Reputation points
2021-03-17T06:23:03.2+00:00

I am looking to see if recaptcha could be implemented with newform.aspx? Ex. make captcha response required and only then allow submission of list item?
https://www.enjoysharepoint.com/google-recaptcha-sharepoint/

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2021-03-18T09:43:43.537+00:00

    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.


  2. sadomovalex 3,636 Reputation points
    2021-03-19T14:49:57.017+00:00

    here is another example which uses PreSaveAction for disabling Save button when some checkboxes are not checked: Sharepoint 2013 newform.aspx trying to disable save button until multiple check boxes are ticked. In your example instead of checkboxes recapcha will be used but idea will remain the same.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.