Hey
Im having some difficulties adding a captcha to my corvid registration form.
I have copy-pasted the code from this instructional: https://www.wix.com/corvid/example/recaptcha
I have also connected the submit button and input-fields to a dataset.
I edited the code so that all the element ID’s are correct in the code.
When testing; the captcha-function works, and the button is enabled after captcha, but nothing happens when the button is clicked, nothing is submitted to database, and not even any success or error message is shown. So not sure why that is.
I am not sure if I need to change something in this part:
export function signupButton_click(event) {
$w(‘#submisisonStatusText’).hide();
let submissionRequest = {
token: $w(‘#captcha’).token,
form: { <//This part, including block.
fullName: $w(‘#fullNameInput’).value,
email: $w(‘#emailInput’).value
}
What is “form”? Where does it connect?
Do I need to add all my input-fields in this block?
I also created the captchaModule.jsw as shown in instructional and added the code without any change.
This is what I imported:
import wixUsers from ‘wix-users’;
import wixLocation from ‘wix-location’;
import { processSubmissionRequest } from ‘backend/submitHandler’;
import wixCaptcha from ‘wix-captcha-backend’;
import wixData from ‘wix-data’;
Thanks for any insight or help with this.
E.