11.19.2008 | |

Array of Links in a Repeatable Section

I needed to repeat text and links within an array. So I created a group with the following:

requestGrp
Label
Link

However when I created a repeatable section and selected requestGrp.Label as my Label and requestGrp.Link as my Link.....

I assigned it as following:

requestGrp[0].Label = "cnn"
requestGrp[0].Link = "www.cnn.com"
requestGrp[1].Label = "fox news"
requestGrp[1].Link "foxnews.com"



...my text box worked as it should. However the link took the last one in the array and repeated it. Darn!

0 comments: