How to store variable numbers of dynamic fields per member in Memberstack? Answered
Hi Memberstack team,
Is it possible to populate dynamic fields for a member?
For example: In my learning dashboard, I want my members to be able to fill out their students’ names. The number of students will differ for every member. Does Memberstack support something like this?
Comments
3 comments
A practical way to handle this is by using Script #198 – Add Individual Items to Data Tables. Since you want members to be able to fill out their students’ names — and the number of students will vary for each member — #198 is a strong fit because it allows you to store growing lists of values tied to a member. Each student’s name can be saved as an individual item in a Data Table, and members can add as many entries as they need without being limited to a fixed number of fields.
That way, your learning dashboard can dynamically display the list of students for each member, and it scales naturally whether someone has 2 students or 20.
That said, if your requirement is more complex (like storing detailed profiles for each student with multiple attributes), you might need a more advanced setup using Memberstack’s API or an external database. #198 is best when you want simple, repeatable fields or lists that grow per member.
Hi Christy,
Yes, Memberstack does support the ability to populate dynamic fields for a member. You can achieve this through the use of Custom Fields and the Front-End API.
For your specific scenario of allowing members to fill out their students' names in a learning dashboard, here's how you could approach it:
Here's a high-level overview of the steps:
This may require further customization based on your specific implementation.
Feel free to reach out if you have any further questions or need assistance with implementing this feature. We're here to help!
Christy Lammerink I also recommend checking out these MemberScripts that Julian created. He’s using the JSON feature to create new “fields” and updating them.
https://www.memberstack.com/scripts/add-item-groups-to-member-json
https://www.memberstack.com/scripts/create-item-groups-from-member-json
https://www.memberstack.com/scripts/add-items-to-json-groups-on-click
What are you hoping to do with the names once they have been added by a teacher?
Please sign in to leave a comment.