Data Attributes
Complete reference for all Memberstack data attributes. Open modals, populate forms, hide content, and more — just click to copy.
CSS | Apply Styling
This feature lets you add styling to an element on your published site.
Auto-expand Input Width
MemberScriptUpdate input width based on its content.
Auto-expand Text Area
MemberScriptAutomatically resize a text area based on its content.
Clear Input Value
MemberScriptClear the value of one or more inputs.
Click onHover
MemberScriptTrigger a click event when hovering over an element.
Confirm Password
MemberScriptAdd a password confirmation field to your password reset forms.
Content | Visible if Custom Field is Empty
MemberScriptVisible if a specific custom field is EMPTY.
Countdown Timer
MemberScriptSet the starting value of a count down timer. (Script 16)
Disable First Select Option
MemberScriptPrevent users from selecting the placeholder option in your select inputs.
Disable Form Submit Button
MemberScriptDisable submit button until required fields are valid.
Member | Email
Display or access a member's email address.
Modal | Forgot Password
Launch the default Memberstack forgot password modal.
Form Inputs
Populate form fields with member data.
GIF | Hover IX
MemberScriptTrigger the associated gif to restart.
GIF | Target
MemberScriptTag the gif you want to restart.
Hidden Measure (for Input Width)
MemberScriptUsed to dynamically set the width of an input.
JSON | Array Name
MemberScriptSets the key/field name for a JSON array
JSON Form
MemberScriptSave/update values using member JSON.
JSON Form | Save as New Item
MemberScriptSave all form values as a new item in a JSON list.
JSON | Input
MemberScriptUse this to set the key or a field name of some JSON.
JSON | Type Array
MemberScriptSaves the values of a form submission as an array.
JSON | Type Group
MemberScriptSaves the values of a form submission as a group.
JSON | Update Local Storage
MemberScriptUsed with MemberScript #3 to update local storage.
Modal | Login
Launch the default Memberstack login modal.
Member | ID
Access a member's unique ID.
Member | Links
MemberScriptPopulate a link using an URL stored in a custom field.
Member | Set iFrame Src
MemberScriptSet an iFrame src using a member's custom field.
Meta | Display Metadata
MemberScriptDisplay member metadata dynamically on your website.
Passwordless | Button Text
Will replace the button text once a valid email has been submitted.
Modal | Profile
Launch the default Memberstack profile modal.
Require Input if Visible
MemberScriptOnly require an input if it's visible. Great for conditional inputs.
Content | Show if Custom Field is Set
MemberScriptVisible if a specific custom field is set.
Show / Hide Password
MemberScriptCreate a button to show/hide password inputs.
Member | Signup Date
Access a member's signup date.
Modal | Signup
Launch Memberstack's pre-built signup modal.
Truncate Text
MemberScriptSet the character limit of a string of text, truncate, and append "..."