pages have a form that submits the lead data to Salesforce.
Salesforce
Salesforce data:
PROD OID: 00D3000000060xn
NON-PROD OID: 00D8K0000004ccT (in the .env file I do not have this, but I don’t want to delete important info)
NON-PROD OID: 00D590000004dWN
Front-end
The form front-end is part of the Next.js application powering the website. Please be careful with the input names and the existent data as they are required for the Salesforce integration.
This function checks the submission (request type, existence of main lead data, valid captcha validation), lightly sanitises the data and post it to the Salesforce endpoint. Based on the success or failure of the request, the user is redirected to a message page.
Runtime environment variables
Please be sure that the environment variables are set in the right way. They are saved as a backup in