How to Allow your Members to Enter their Birthday and Save their Age

This post will teach you how to add birthday input fields in your Webflow site and calculate member ages automatically. You'll learn why collecting birthday data matters and how to implement this feature using our ready-to-use cloneable.

Añada afiliaciones a su proyecto Webflow en cuestión de minutos.

Más información

Más de 200 componentes Webflow clonables gratuitos. No es necesario registrarse.

Ver biblioteca

Añade membresías a tu proyecto React en cuestión de minutos.

Empezar

How to allow your members to enter their birthday and save their age

Miembros necesarios

https://www.memberstack.com/scripts/birthday-age-input

Tutorial

Clonable

Why/Use Cases

- Display members’ age based on the birthdate they input.

Allowing members to enter their birthday and save their age on a Webflow site

This guide will help you add a birthdate input on your page and automatically display the age based on that input.

To allow members to add their birthday and save their age on your Webflow site, we’re going to use MemberScript #119 – Age Calculator from Date Input. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

Begin by creating the date input and styling it however you like. Once that’s done, add this attribute to it:

· ms-code-bday-input=”1”

Now if you want to display the age on the page, you need an additional input with the following attribute:

· ms-code-age-input=”1”

The reason both of these attributes have the same value is because that’s how we’re matching both inputs to each other.

So, if for some reason you have multiple birthday inputs on your page and want to display the age for each, simply change the values accordingly. They can be either numbers or words.

Hacer que funcione

Now that you’ve got everything set up in Webflow, all you need to do is add the MemberScript #119 custom code to your page, before the closing body tag.

Conclusión

That’s everything, you can now go ahead and test the progress bar on your live site.

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

Our demo can help you add a birthdate input and on your Webflow site and automatically display the person’s age.

Take me to Cloneable!

ÍNDICE
Ovidiu
¿Qué es Memberstack?

Autenticación y pagos para sitios Webflow

Añada inicios de sesión, suscripciones, contenido cerrado y mucho más a su sitio Webflow: fácil y totalmente personalizable.

Más información
Empezar a construir

Pruebe Memberstack y descubra todo lo que puede crear.

Memberstack es 100% gratis hasta que estés listo para lanzarla - así que, ¿a qué estás esperando? Crea tu primera aplicación y empieza a construir hoy mismo.