# Collections - Open an URL + Open a Tab

**URL:** <https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212>\
**Category:** Ask for Help\
**Created:** [November 28, 2023, 8:02pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212 "2023-11-28T20:02:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 8:02pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/1 "2023-11-28T20:02:24Z")

</div>

Hi everyone, new to Glide and have a question.  
First, many thanks for your help in advance!

I’m trying to create a collection with cards that act as visual links to different Tabs / external URLs. So when you click one, it just opens a tab / url, if you click the other, it opens the other tab / url.

In some cards I want the user to be redirect to another tab inside my app. In another cards, I want the user to be redirect to an external url.

When using the “Actions” to set this action, I´m able to choose just 1 single action for the hole collection. Or I can choose which tab the card will open, or which url (in the same table source).  
I´m not able to mix “users redirections” in the same collection.

I want the card together in the same collection because they are part of the same subject.

Any way to achieve this?  
Many many thanks!

---

<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:** [November 28, 2023, 8:09pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/2 "2023-11-28T20:09:03Z")

</div>

> [@Caio\_Dias](#):
>
> When using the “Actions” to set this action, I´m able to choose just 1 single action for the hole collection. Or I can choose which tab the card will open, or which url (in the same table source).  
> I´m not able to mix “users redirections” in the same collection.

Select the New option to create a new custom action. Then add conditional branches to do different things based on values in your table.

---

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 8:31pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/3 "2023-11-28T20:31:35Z")

</div>

Thanks, Jeff! But I´m still struggling with that.

Let me try to clarify with images:

1. I have the 5 itens below in my table (collection).  
For the first 1, I want to redirect to another tab inside the app, when the user clicks in the card;  
For the other 3, I want the user to be redirected to the links in the table.

 ![Screenshot 2023-11-28 at 20.25.07](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9f7628103db22b2bb184a95cca2688ab1954f6df.png)

1. This is how my collection inside the tab in the Menu is looking like.  
The first card “NutriSlim21” is not even clickable, because there´s no URL associated to it in the table.

![Screenshot 2023-11-28 at 20.28.50](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/0/602cee15b6672b931664dcf71f08f7e95bf1f9bf.png)

1. This is how I configured the actions.

 ![Screenshot 2023-11-28 at 20.30.15](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/d/6d0f9dbd0fe4d3820116f2d20f2947189999ec44.png)

I hope it´s easier to understand now.  
Apologies in advance for any silly doubt…

---

<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:** [November 28, 2023, 8:34pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/4 "2023-11-28T20:34:55Z")

</div>

I understand the situation. That’s why I explained to create a new custom action, which will let you do exactly what you want. In your screenshots, you haven’t selected the ‘New Action’ option.

---

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 8:45pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/5 "2023-11-28T20:45:21Z")

</div>

Thanks again, Jeff!

I have created this new Action, but I can run / not working.  
I´m not sure why… could you help me on that please?

 ![Screenshot 2023-11-28 at 20.44.23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/5/c570924e43790480e00d7e8d9b23be241c6c4426.png)

---

<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:** [November 28, 2023, 8:47pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/6 "2023-11-28T20:47:35Z")

</div>

Is that new action being called by the Item Click of the Collection?

---

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 8:54pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/7 "2023-11-28T20:54:33Z")

</div>

WOW! It just worked smoothly!  
Many many thanks for the explanation and patience!

Can I ask you another help, please?  
It´s regarding the “back” button. I could figure it out how to create one and add to my page, using also the Actions.  
It´s like that:

![Screenshot 2023-11-28 at 20.52.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/7/47abb01b919d9b8e7f1aa854c8f2ef14b22f3e0f.png)

Is there any way to set up an “arrow” in the header, like the built-in one?

![Screenshot 2023-11-28 at 20.53.50](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/9/8968d008728b25959d61eff16797296689bd5ad6.png)

Many many thanks again!

---

<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:** [November 28, 2023, 9:07pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/8 "2023-11-28T21:07:17Z")

</div>

Tabs are at the top of a hierarchy, so there really isn’t anything to go back to. Instead of a ‘Go to Tab’, use a ‘Show Detail Screen’ or ‘Show New Screen’ action. That will place you below the top level tab, which should automatically give you a back button.

I typically don’t use the ‘Go to Tab’ action. I usually use a ‘Show Detail Screen’ or ‘Show New Screen’ action instead.

---

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 9:36pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/9 "2023-11-28T21:36:11Z")

</div>

Jeff, again, many thanks!

I tried to do what you suggested, without success.  
Can I post some screenshots here and you give me your opinion pls?

1. Ive added this action

 ![Screenshot 2023-11-28 at 21.30.09](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/1/911d5f2b253000f515181235fbefac399d7d6aa5.png)

1. Added also a button just under the header, assigning the action

![Screenshot 2023-11-28 at 21.35.10](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/3/93bbd14f5066e3280ef6d8fecbfe619d48adba2f.png)

 ![Screenshot 2023-11-28 at 21.32.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/c/8cc3fe3a6dc48d780f827142ae9fd15def5ffe61.png)

Thank you!

---

<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:** [November 28, 2023, 9:46pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/10 "2023-11-28T21:46:23Z")

</div>

You shouldn’t need to create a button at all, so I would delete it. If you set it up correctly, there will be a back button in the header.

Regarding your action, is that another separate custom action that’s different than the first one you created?

All you should have had to do is change the original action. Replace ‘Go to Tab’ with ‘Show Detail Screen’ or ‘Show New Screen’.

---

<div class="post-metadata">

**Author:** ![Caio\_Dias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caio_dias/32/65989_2.png) [@Caio\_Dias](https://community.glideapps.com/u/Caio_Dias)\
**Post date:** [November 28, 2023, 10:05pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/11 "2023-11-28T22:05:00Z")

</div>

Tks, Jeff!

1. This is my initial action, I have updated it already to “show detailed screen”. Removed the button also.

![Screenshot 2023-11-28 at 21.59.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/d/0d8dad56d7cc184e465cab231545525c1ddbb9de.png)

![Screenshot 2023-11-28 at 21.58.02](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/0/c05bd76d4c1d9952db30dd35fc6181f1fcd2e46d.png)

1. Parallel to that, I also had a button using “go to tab” action. But I have already removed it.

![Screenshot 2023-11-28 at 21.53.17](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/b/1be8c080dbb5b32a98fad4d1ddc59bb0350290e4.png)

![Screenshot 2023-11-28 at 21.53.09](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8a6ae8d20361dbe35898ba696a5a8e6eb693fd1f.png)

---

<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:** [November 28, 2023, 10:20pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/12 "2023-11-28T22:20:05Z")

</div>

Sorry, I’m completely lost now. I feel we are talking about different things and you are trying to fix the wrong problem.

Show me this action with the IF branches.

 ![Screenshot 2023-11-28 at 20.44.23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/5/c570924e43790480e00d7e8d9b23be241c6c4426.png)

This is the only custom action you should have. This is the only one you should be changing. Since you didn’t give it a name earlier, I have no idea if you named it or left it as Untitled. Now you are showing me actions named Go Back, but I don’t know what that has to do with what I’m trying to tell you. I think you are trying to make a back button work, when instead you should be fixing the action on the main screen so that you will automatically get a back button.

---

<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:** [December 5, 2023, 10:20pm UTC](https://community.glideapps.com/t/collections-open-an-url-open-a-tab/68212/13 "2023-12-05T22:20:25Z")

</div>

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