Dropdown Choice Source pages on app

I’m trying to create a featured post page, where I have images at the top that an admin can add. Right now I have it set up so that when you create a featured post the admin can decide if it’s linked to an external website or one of the events on our platform. This all works great.

What I’m trying to do is add a 3rd option of internal pages. Sometimes I want to link to a new feature I created that is on a certain page. I can’t seem to find a way to add pages in the dropdown menue on my app as an option. Then I will want to create a workflow that when the image is clicked and the option is for internal page it will direct to the selected page. Any ideas on how I might set this up?

Anyone have a solution for this?

Hi @eric10 :wave:
I once had this same requirement, this is how i fixed it
Hope it helps :slightly_smiling_face:
First i created a options sets with same page names

Then in the dropdown i passed dynamic data → All pages

Then i run javascript (you need Toolbox plugin for this)
Screenshot 2022-08-26 at 17.47.10

Hope it helps :+1:

1 Like

Thank you. I have something similar to this setup for something else. I was just hoping there was an easier way to call the pages, but it does not seem like it. Thank you. This is actually smarter than the way I have it setup. I setup a bunch of Go to Page workflows with “Only When…” . I end up with a ton of workflows since I have a bunch of pages.

1 Like

Nice! And does it make the page load if it’s going to the same page you’re on?

@giosegar Yes it will make page load for the same page