The form to email module for LionRockJS, customize schema/lead_info for your own needs
npm i @lionrockjs/mod-cold-leads
- Form post to route mapping to ControllerLead.action_update()
- Form fields using ORMInput syntax and attributes[lead_info] for lead info customised fields.
- Form field destination for thank you page redirection.
- utm tracking fields are automatically captured and stored in the lead object if using ControllerLead.action_index() .
- Greeting email will be sent to the lead if contact type "email" is present.
- support json response for thank you page and duplicate page.
RouteList.add(Central.config.language.route + '/registration/verify', 'controller/Lead', 'verify', 'POST');
RouteList.add(Central.config.language.route + '/registration/create', 'controller/Lead', 'update', 'POST');
RouteList.add(Central.config.language.route + '/registration/thank-you', 'controller/Lead', 'thank_you');
RouteList.add(Central.config.language.route + '/registration/thank-you/:sign', 'controller/Lead', 'thank_you');
RouteList.add(Central.config.language.route + '/registration/thank-you.json', 'controller/Lead', 'thank_you_json');
RouteList.add(Central.config.language.route + '/registration/duplicate', 'controller/Lead', 'duplicate');
RouteList.add(Central.config.language.route + '/registration/duplicate.json', 'controller/Lead', 'duplicate_json');
RouteList.add(Central.config.language.route + '/edm/view/:template', 'controller/Edm', 'view');