Dynamic generation of Card set base on JSON

(Swoop Loop) #1

Hello everyone,

I would like to ask how to make Card set items dynamic. For example I have

var sample = [
{id: “1”, name; “samplename”, age: “sampleage”},
{id: “1”, name; “samplename”, age: “sampleage”},
{id: “1”, name; “samplename”, age: “sampleage”}
]

What I want to do is, I want these JSON entries to be in the items in the card set. The thing is I do not know if variable sample has length 3 or 4 or 5. So, I need to make it dynamic. Thanks for the help guys!

(Karen Barker) #2

Hi there,

A card set can include up to 10 cards. You can set the card sets up using data outputs from your JSON. If the Data output doesn’t exist - For example you’re referencing 5 when there are only 3, then the card will automatically not display. :slight_smile:

2 Likes
(Swoop Loop) #3

Thank you so much! :slight_smile: