{"id":26871221,"url":"https://github.com/codeadamca/react-forms-salesforce","last_synced_at":"2026-05-07T18:46:38.678Z","repository":{"id":115328480,"uuid":"546204222","full_name":"codeadamca/react-forms-salesforce","owner":"codeadamca","description":"A basic example of submitting form data from a React.js form to the Salesforce WebToLead.","archived":false,"fork":false,"pushed_at":"2025-01-26T22:06:12.000Z","size":595,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T07:18:46.251Z","etag":null,"topics":["react","salesforce-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeadamca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-05T17:54:14.000Z","updated_at":"2025-01-26T22:06:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"484c3d2b-53aa-492f-ad6f-c7e3b62fce0f","html_url":"https://github.com/codeadamca/react-forms-salesforce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeadamca/react-forms-salesforce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Freact-forms-salesforce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Freact-forms-salesforce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Freact-forms-salesforce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Freact-forms-salesforce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeadamca","download_url":"https://codeload.github.com/codeadamca/react-forms-salesforce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Freact-forms-salesforce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32751756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","salesforce-api"],"created_at":"2025-03-31T07:18:48.361Z","updated_at":"2026-05-07T18:46:38.641Z","avatar_url":"https://github.com/codeadamca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Salesforce API and a React Contact Form\n\nA basic example of submitting form data from a React.js form to the Salesforce WebToLead.\n\nThis eample uses the [react-forms](https://github.com/codeadamca/react-forms) and the [php-env](https://github.com/codeadamca/php-env) repos as a starting point. \n\nThe Salesforce WebToLead form was intended to process an HTML form submission to add customers to the Salesforce database. The WebToLead processing was not build to work with an AJAX request and is susceptable to CORS. This example sends the form data to a PHP proxy file which sends the form data to cURL to bypass CORS.\n\nYou will need to update the .env file with your Salesforce OID  and redirect URL aong with updating the fetch URL to match the location of your proxy.php file. \n\n***\n\n## Repo Resources\n\n* [react-forms](https://github.com/codeadamca/react-forms)\n* [php-env](https://github.com/codeadamca/php-env)\n* [Salesforce Web to lead](https://www.salesforce.com/ca/products/guide/lead-gen/web-to-lead/)\n\n\u003cbr\u003e\n\u003ca href=\"https://codeadam.ca\"\u003e\n\u003cimg src=\"https://cdn.codeadam.ca/images@1.0.0/codeadam-logo-coloured-horizontal.png\" width=\"200\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Freact-forms-salesforce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeadamca%2Freact-forms-salesforce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Freact-forms-salesforce/lists"}