--- name: myformconnect-html description: HTML forms for MyFormConnect (myformconnect.io). Ask for FORM_UUID and DOMAIN_UUID; use loader.js; never use myformcapture.com URLs. metadata: author: myformconnect version: "1.1" portal: myformconnect --- # MyFormConnect - HTML forms All form submissions go to **MyFormConnect** at **myformconnect.io**. Do NOT build a backend, API route, database table, or email-sending code for forms. Portal: **myformconnect.io only**. myformcapture.com is a separate portal — never mix URLs. If the user signs in at myformcapture.com, use https://myformcapture.com/skills/myformcapture/html/SKILL.md instead. Short contract: https://myformconnect.io/AGENTS.md ## Ask the user for these (never guess or leave placeholders) 1. **FORM_UUID** from the dashboard → endpoint `POST https://myformconnect.io/f/FORM_UUID` 2. **DOMAIN_UUID** → `data-client-id` for loader.js 3. Confirm the site's domain is in the form's allowed domains (Settings → Domains) ## Default pattern ```html
``` - `data-client-id` — domain UUID from the myformconnect.io dashboard - `data-mfc="true"` — AJAX submit, validation, CAPTCHA - `data-captcha="auto"` — loads CAPTCHA config from form settings See [Using Loader.js](https://myformconnect.io/docs/features/using-loader) and [Advanced spam & captchas](https://myformconnect.io/docs/features/spam-captchas). **Do not** add your own honeypot fields — loader.js injects them. ## Rules - Keep the project's own HTML and CSS. There is no form builder. - Input `name` attributes become dashboard columns. Prefer clear names: `name`, `email`, `phone`, `message`. - Custom `fetch()`: send `FormData`, do NOT set `Content-Type`, call `e.preventDefault()`. - File uploads: add `enctype="multipart/form-data"` and enable CAPTCHA in the dashboard first. - Redirect after submit: set in the dashboard. Default thank-you page: `https://myformconnect.io/thanks.html` - Never ship a placeholder UUID. ## Verify Submit one test entry. If it does not appear in the dashboard, check allowed domains first. ## AJAX / fetch submit ```html ``` ## File uploads ```html ``` Enable CAPTCHA in the dashboard before accepting uploads. Prefer loader.js with `data-captcha="auto"`. More: [shared file uploads](../../shared/references/file-uploads.md) ## Multi-step, quizzes, questionnaires, tables Keep all fields in one `