Lesson notes
How it works
How Memberstack attributes turn a form into a signup form
Memberstack doesn't replace your Webflow form. It reads attributes on it. data-ms-form="signup" on the form element tells Memberstack to handle the submit and create an account. data-ms-member="email" and data-ms-member="password" tell it which inputs hold the login details. Any extra input, like a first name, gets data-ms-member with the ID of a custom field you've created on the Members page, for example data-ms-member="first-name".
Because it's all attributes, you keep full control of the design. The Attributes page in your Memberstack dashboard lists every one.
Three ways to build a signup form
Copy a component. In your Memberstack dashboard, go to Components, then Signup, pick a styled or unstyled form, copy it and paste it into the Webflow Designer. All the attributes are already set.
Use the pre-built modal. Add data-ms-modal="signup" to any button or link. Clicking it opens Memberstack's signup modal, and the button hides itself once a member is logged in.
Build it from scratch, with your own Webflow form and the attributes added by hand or with the Webflow app.
- Add a Webflow form block with an email input and a password input.
- Select the form element and add
data-ms-form="signup". - Add
data-ms-member="email"to the email input anddata-ms-member="password"to the password input. - For each extra field, create the custom field in Memberstack and add
data-ms-member="field-id"with its ID. - Publish and submit a test signup.
Adding attributes with the Memberstack Webflow app
The Memberstack Webflow app adds attributes for you. Install it from the Webflow App Marketplace, authorize it on your site, then launch it from the Apps panel in the Designer. Select the form and set the form type to signup, then select each input and set it to the matching member data. If you skip the app, type the same attributes into each element's custom attributes.
A Google button in the form uses data-ms-auth-provider="google", but it only works once Google login is enabled in Memberstack.