# Different data for each collection item

**URL:** <https://community.glideapps.com/t/different-data-for-each-collection-item/63569>\
**Category:** Ask for Help\
**Created:** [July 6, 2023, 11:59am UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569 "2023-07-06T11:59:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominiqu0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dominiqu0/32/60953_2.png) [@Dominiqu0](https://community.glideapps.com/u/Dominiqu0)\
**Post date:** [July 6, 2023, 11:59am UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/1 "2023-07-06T11:59:50Z")

</div>

hi. i would like to create a photo list with the collection component but with different data but every time i select a table for the data source of photo 1 it is displayed in every other new page of the other photos. i would like that every time the user clicks on an item it takes him to another data.

 ![Capture d’écran 2023-07-06 114119](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/7/471cd417a1b71f55f16bc3bee068ff120ce77af9.jpeg)

 ![Capture d’écran 2023-07-06 115255](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/e/ceec5634c78ad9343215748ef1d6970e694d994e.jpeg)

for example I want the second page to be only for the 1st element of the collection

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 6, 2023, 12:23pm UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/2 "2023-07-06T12:23:41Z")

</div>

Change the action to a custom action on your main collection. Then create separate IF branches in that custom action where each one is true based on a value in the chosen image row. Add a ‘Show New Screen’ action below each IF branch.

---

<div class="post-metadata">

**Author:** ![Dominiqu0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dominiqu0/32/60953_2.png) [@Dominiqu0](https://community.glideapps.com/u/Dominiqu0)\
**Post date:** [July 6, 2023, 1:05pm UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/3 "2023-07-06T13:05:52Z")

</div>

can you show me with screenshots please

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 6, 2023, 1:45pm UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/4 "2023-07-06T13:45:23Z")

</div>

You would create a custom action that looks something like this. Each condition would look at value on your main list and open the appropriate new screen. Each screen will then be independent from the others.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/1/91457e96d2030f86c96a2762c5548957fc54e250.png)

---

<div class="post-metadata">

**Author:** ![Dominiqu0](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dominiqu0/32/60953_2.png) [@Dominiqu0](https://community.glideapps.com/u/Dominiqu0)\
**Post date:** [July 6, 2023, 2:07pm UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/5 "2023-07-06T14:07:27Z")

</div>

Thank you my problem is solved

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [July 7, 2023, 2:07pm UTC](https://community.glideapps.com/t/different-data-for-each-collection-item/63569/6 "2023-07-07T14:07:45Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
