How to check if the parameters in the URL is the text that been clicked?

Do you know if there is a way to check if the parameter in the URL corresponds to the text that was clicked on and used to send the parameter?

Here’s my current workflow:

  1. User clicks on a platform (here, gamecube)

  2. it sends the “gamecube” parameter in the URL

  3. The data source of the repeting group changes according to the parameter to display the items of the selected platform (here, gamecube again).

The problem is that it’s all static, so I’d like to make it so that there are only 1 conditions in the repeting group and not a bunch of static conditions.

Do you guys can help me ?

If I understand correctly you’re asking how to structure this in a way that doesn’t require you to have 1 condition for each platform, correct? If so, there are a few different ways to do this.

1 - You can set the page datatype to platform and then set the RG’s search constraint to platform = current page’s platform

2 - Modify the condition to be When get s from Page URL is not empty. Then in the data source you can set the platform constraint to = get platform from page url (if you’re passing a unique ID of the platform) OR Platform = do a search for Platform where name = get s from page url: first item

Yes, you’ve understood my problem perfectly!

Ooooh I see what you’re getting at but on my app, “platform” is a field of “items”.

Does it still work with your answer?

Is it also it’s own datatype or just a text field on the item datatype?

1 picture is worth a thousand words :sweat_smile:

Yes, it will work. Let me know if you have any specific questions


Okay, so i’m getting stuck there. I change the datatype of my page to “Items” and constraint the RG’s to “current page’s platform”.

But when it comes to conditional, i dont’t found the "get platform from page url "

Sorry I think my initial comment was confusing. 1 and 2 represent two different approaches, not 2 steps of the same approach. So if you’ve already set the page content (content type should be platform and not items) then all you need to do here is platform = current page’s platform

This topic was automatically closed after 70 days. New replies are no longer allowed.