Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Customize OOB form widget to send Captcha to Server side script

pramodkumar
Tera Expert

Hi All,

I am customizing OOB form widget to include google captcha. In client controller, OOB uses $scope.submitting = true; which then send data to server. How can we include the google captcha response to the server so I can validate it?

 

 

Thanks!

1 REPLY 1

Kieran Anson
Kilo Patron

Hi,

You would need to do this in the 'triggerUIAction' function before g_form.submit is called. Call spUtil.get() to call your widget server script and verify the reCaptcha token, on response, you can then continue evaluating with submitting the form