How to Allow your Members to Save Arrays to their Profile + Display them

This post will teach you how to allow your members to save arrays to their profile, why you might want to enable members to save and display arrays, and how the cloneable works in your Webflow site.

Ajoutez des adhésions à votre projet Webflow en quelques minutes.

En savoir plus

Plus de 200 composants Webflow clonables gratuits. Aucune inscription n'est nécessaire.

Voir la bibliothèque

Ajoutez des adhésions à votre projet React en quelques minutes.

Commencer

How to allow your members to save arrays to their profile + display them

Memberscripts needed: 

https://www.memberstack.com/scripts/render-array-custom-field

Tutoriel

Clonable 

Pourquoi/Cas d'utilisation

- Display information to users based on data they input on the site, e.g. an input for skills with the skills previously entered displayed below the input.

Allowing members to save arrays to their profile and display them

If you’re here, you probably already know that Memberstack custom fields can only be strings, meaning you can only have one data type. While users on the front-end can input only numbers or only arrays, for example, in Memberstack it’s just a string.

This guide will show you how to render an array on the front-end based on a custom field, allowing your members to save arrays to their profiles.

To allow members to save arrays to their profiles and display them on your Webflow site, we’re going to use MemberScript #121 – Render Array from Custom Field. 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 and styling the custom field and an array element. Add this attribute to the array element:

· ms-code-render-array=”VALUE” – for the value use the custom field’s ID

To make sure all the array elements look nicely together, remember to style the parent wrapper accordingly.

Making it work

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

Conclusion

That’s everything, you can now go ahead and see how arrays are rendered on your live site.

Si vous souhaitez utiliser notre projet de démonstration pour commencer, cliquez simplement sur le bouton ci-dessous pour l'ajouter à votre site Webflow.

 

Our demo can help you render an array on the front-end based on a custom field.

Take me to Cloneable!

TABLE DES MATIÈRES
Ovidiu
Qu'est-ce que Memberstack ?

Auth & paiements pour les sites Webflow

Ajoutez des logins, des abonnements, du contenu à accès limité, et plus encore à votre site Webflow - facile et entièrement personnalisable.

En savoir plus
Commencer à construire

Essayez Memberstack et découvrez ce que vous pouvez construire !

Memberstack est 100% gratuit jusqu'à ce que vous soyez prêt à vous lancer - alors, qu'attendez-vous ? Créez votre première application et commencez à construire dès aujourd'hui.