Collect Leads and Contact Requests Without Logging Visitors In


Use AE Connect to collect lead, contact, newsletter and application requests directly on a landing page. Visitors fill in a short form. They do not choose a password and they are not logged in afterwards, but each submission is stored against a member in your FairShare dashboard so you can follow up and see the details later.



When to use this

Use a form in subscribe mode when the visitor should become, or stay, a member without logging in, and when the answers should be stored with the member. A normal form that only sends an email, or that sends data to another tool, does not need AE Connect.

Important

Subscribe mode does not log the visitor in and does not create an access token. For ordinary registration forms that should log people in, see Build Your AE Connect Registration Flow.



Before you start



Build the form

Add the AE Connect framework script from the Install AE Connect tab of your application, then add a form like this one:

<form
    data-ae-type="register"
    data-ae-register-form="email"
    data-ae-registration-mode="subscribe"
    data-ae-welcome-email="false"
    data-ae-return="https://example.com/thank-you">

    <label for="lead-email">Work email</label>
    <input id="lead-email" type="email" name="email" required>

    <label for="lead-firstname">First name</label>
    <input id="lead-firstname" type="text" name="firstname">

    <label for="lead-surname">Last name</label>
    <input id="lead-surname" type="text" name="surname">

    <label for="lead-business">Business or company</label>
    <input id="lead-business" type="text" name="extended-business">

    <label for="lead-artists">Number of artists</label>
    <input id="lead-artists" type="text" name="extended-number_of_artists">

    <label for="lead-notes">Anything else we should know?</label>
    <textarea id="lead-notes" name="extended-notes"></textarea>

    <input type="hidden" data-ae-password-generate>

    <button type="submit">Request a conversation</button>
</form>

These attributes make it a subscribe form:

Attribute

What it does

data-ae-register-form="email"

Uses the email form handling. Field validation is done in the browser.

data-ae-registration-mode="subscribe"

Subscribes the visitor without logging them in.

data-ae-password-generate (hidden input)

Lets the form work without a visible password field. AEJS creates a temporary password in the browser; it is not shown or stored on the page.

data-ae-welcome-email="false"

Asks for no welcome email to be sent. Where your plan and application settings do not allow this, the form shows an error instead of ignoring the request.

data-ae-return

The page the visitor is sent to after a successful submission, for example a thank-you page.

For all data tags, see the AE JS Data Tags Reference.



Standard and custom fields

Standard fields

Form field

HTML name

Stored as

Email

email

Member email

First name

firstname

Member first name

Last name

surname

Member surname


Custom fields

Any other value you want to keep, such as a company name or a campaign question, goes in a field whose name starts with extended-. Use lowercase letters, numbers and underscores, and keep the names the same after launch.

HTML name

Shown in the dashboard as

extended-business

Business

extended-number_of_artists

Number Of Artists

extended-notes

Notes



What happens when someone submits

  1. The visitor fills in the form and selects the button.
  2. FairShare creates the member, or reuses the member that already has that email address.
  3. Standard fields that are empty on the member are filled in. Values the member already has are kept.
  4. The custom fields are stored as extended data for your application.
  5. The visitor is sent to the data-ae-return page. They are not logged in.

If the submission fails, the visitor stays on the form.

Repeat submissions and existing members

  • Submitting the same email again does not create a second member.
  • A name that is already on the member is not overwritten.
  • The extended data shown is the latest submission: new values replace the previous ones.
  • An existing member is not logged in, and the form does not ask for their password.



View the submitted information

  1. In the FairShare dashboard, select Insights in the top menu, then All Members.
  2. Select the member's name to open the Member Profile. It has the tabs Profile, Journey and Extended Data.
  3. Open Extended Data. Under Submitted Information, each custom field appears as a label and its value.

If the member has not submitted any extended data, the tab says so.



React to a successful submission

A subscribe form does not run the login event. When the submission succeeds, AEJS runs the onSubscribeSuccess event instead. Use it for a thank-you message or for analytics that should run only after a successful signup:

function AEJSReady(aeJS) {
    aeJS.events.onSubscribeSuccess.addHandler(function (details) {
        // details.state is "subscribe"
        // run post-signup behavior here
    });
}

There is no separate AEJS event for the start of a submission. Use the browser's own submit event if you need that. See the AE JS Events Reference.



Consent

Asking someone to contact you is not the same as agreeing to ongoing marketing. If you want newsletter consent, add a separate checkbox with its own wording, and keep it unchecked by default.



Test the form

Use disposable test addresses before launch.

  • Submit a new address. You reach the thank-you page and the visitor stays logged out.
  • Open the member under Insights > All Members and check Extended Data.
  • Submit the same address again. There is still one member.
  • Break the form on purpose, for example with an invalid email. The visitor stays on the form and sees a readable message.
  • Check the page on a phone-sized screen.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article