Add to Any Website Template
Each company and website in your CRM receives a unique data-website slug. Paste this snippet right before the closing </body> tag. It runs silently in the background, listening to form submissions and syncing leads to your CRM dashboard.
Personalize Code Snippets
Paste your website URL (e.g. https://www.sahajdesign.com) or slug:
<script src="https://apis.admin.hutechsolutions.in/crm-embed.js" data-website="YOUR_WEBSITE_SLUG" async> </script>
How Existing Forms Are Automatically Routed
When you add the 1-line script, it inspects every <form> on your site and automatically routes its submission to the matching CRM endpoint. You don't need to rename fields or rewrite code.
Contact & Inquiry Forms
Wired to /api/contact/submit
Forms containing inputs for name, email, phone, and a message/textarea are automatically treated as inquiries. The script captures field values and dispatches email notifications to your sales/admin team.
Career & Job Applications
Wired to /api/career/apply
Any form containing a file upload field (<input type="file">) or words like career, apply, or job is submitted as a job application with resume file upload.
Newsletter & Subscriptions
Wired to /api/subscriptions/subscribe
Single-field email forms (like "Subscribe to our newsletter" in website footers or popups) are automatically recognized and added to your CRM subscriber lists.
Sales & Quotation Requests
Wired to /api/sales/brochure
Forms designed for requesting quotes, pricing brochures, product demos, or proposals are captured and sent to the sales department.
input[type="password"] and role="search"). It will only sync legitimate lead capture forms.Where to Paste the Script
Choose your website technology below to see exactly where to insert the 1-line script tag. All forms on your site will automatically connect:
Static HTML Setup:
- Open your root
index.htmlor global template file. - Paste the script snippet immediately before the closing
</body>tag:
<!-- SahajCRM Universal Form Engine --> <script src="https://apis.admin.hutechsolutions.in/crm-embed.js" data-website="YOUR_WEBSITE_SLUG" async></script> </body> </html>
Save and refresh your site. All contact, career, and newsletter forms will now automatically submit into SahajCRM.
Programmatic REST Endpoints
For developers who prefer writing custom fetch, Axios, or backend HTTP requests without using the script tag:
Submits general inquiries with automatic tenant resolution & departmental email alerts.
Accepts job applications with resume file upload (PDF/DOC) sent via multipart/form-data.
Registers newsletter subscribers with automatic verification and welcome email.
Submits requests for sales brochures, quotes, and pricing proposals.