Forms

A form on your site becomes a contact in MRRocket when someone submits it: your contact, demo request, waitlist or newsletter form. It needs SDK 0.12.0 or the script tag (which updates itself).

Mark the form#

Give the <form> a name with data-mrrocket-form. The name is how the form shows in MRRocket, so keep it stable.

<form data-mrrocket-form="Demo request">
  <input type="email" name="email" required>
  <input type="text" name="name">
  <input type="text" name="company">
  <label><input type="checkbox" name="newsletter" data-mrrocket-consent> Email me product news</label>
  <button type="submit">Request a demo</button>
</form>

That is all. Your form keeps working as before: MRRocket listens to the submit and does not replace your backend or form tool.

In Next.js, <CockpitProvider> captures marked forms by default:

<CockpitProvider apiKey={process.env.NEXT_PUBLIC_MRROCKET_KEY!} forms>   {/* true is the default */}
<CockpitProvider apiKey={key} forms="auto">                              {/* also unmarked email forms */}
<CockpitProvider apiKey={key} forms={false}>                             {/* none */}

With the script tag, add data-forms="auto" to capture every form with an email field:

<script async src="https://app.mrrocket.dev/sdk.js" data-key="mrr_pub_…" data-forms="auto"></script>

Auto-detection never captures a form with a password field (sign-in, sign-up) or one inside data-mrrocket-ignore.

What is sent#

SentNever sent
The email (required: no email, no lead)Passwords, one-time codes
The name: a full-name field, or first and last nameCard numbers, CVC, IBAN and other bank fields
Every other field a person typed (up to 30, 1,000 characters each)Hidden fields and files
The form's name, the page, the referrer and UTMFields whose name looks sensitive: token, secret, captcha, ssn, tax id, api key …
Whether the data-mrrocket-consent box was tickedAnything inside an element marked data-mrrocket-ignore

MRRocket checks the fields again on the server, so a sensitive field is dropped there too.

Put data-mrrocket-consent on the checkbox that asks for permission to send marketing email. Leave it unticked by default and keep its label honest.

  • Ticked: MRRocket records Consent as the contact's legal basis to email, with the form's name as the reason.
  • Not ticked, or no such box: the contact has no legal basis. Outreach does not email them until you set one (Sell › Contacts).

The consent box is about marketing email. Answering the person's own request (a demo, a quote) is a different matter and stays your call.

What happens in MRRocket#

  • The contact is found by email, else made new, with the source Form: Demo request and the product as a lead.
  • The fields land on the contact's timeline; phone and company fill the contact when they are empty.
  • With analytics consent the lead carries the visitor id, and the SDK calls identify(email) if your code has not identified the person yet: their visits before the form count for the contact.
  • Settings › Integrations › Leads and API lists each form with its count and lets you pick a list its contacts join.

Check it#

Submit the form once with a test address. Open Sell › Contacts: the contact is there with the source "Form: …". Delete the test contact afterwards.

Form tools#

Typeform, Tally, Cal.com, Calendly, Webflow forms and Framer forms post to your product's lead webhook instead.