Try ERPNext Buy Support Partners Foundation Foundation Members

Google reCaptcha in ERPNext WebForm

Hi,

is it possible to add simple google recaptcha ( I am not robot) or any other capcha to ERPNext webform ( Not by creating Custom Webpage for webform).

If yes , how ?

I tried adding HTML field in the webform
<div class="g-recaptcha" data-sitekey="6LdKkjkUABCDEBy9NbVauLN7_4bEaEfAXUNUrCg"></div>

but when i save the form only <div class="g-recaptcha" ></div> gets saved, it removes custom attribute.

hi

Do you have a solution to this case?

Have you tried to change the field type from HTML to Code? The HTML content gets sanitised (which removes your data tag), while the Code content will not…

Let us know if you get reCaptcha to work, I think this is generally a good idea…