I generated a Web-to-lead in Salesforce form, received an html file, installed a heroku CLI and registered in heroku. What should I do next to run this form in an html file and create a new record in the Lead object in Salesforce. I need a detailed answer as a beginner.
CodePudding user response:
You have a static html page you want to upload somewhere to Heroku. Heroku doesn't do "static" stuff, you can "trick" it into treating your page as a PHP project.
Have you seen posts like
- https://medium.com/@winnieliang/how-to-run-a-simple-html-css-javascript-application-on-heroku-4e664c541b0b
- https://medium.com/@agavitalis/how-to-deploy-a-simple-static-html-website-on-heroku-492697238e48
- https://blog.teamtreehouse.com/deploy-static-site-heroku
- https://javascript.plainenglish.io/deploy-your-static-sites-for-free-on-heroku-in-seconds-7644959356a7
Or really you could follow any detailed Heroku "getting started" guide: https://devcenter.heroku.com/start