Jump to content

Populate Select from another Select


Jon
 Share

Recommended Posts

Hello, I was wondering if PW had a pay of populating as seconds select based on the first select within the admin pages? Basically have a a list of cruises and each cruise has a number of children.

What I would like to do is Select cruise in one dropdown and the date dropdown would list all the child dates. 

Is this possible our would I be better of creating a custom admin page for creating these bookings

Cheers

Jon

Link to comment
Share on other sites

You could possibly use a PageField and using "Custom selector to find selectable pages" with the custom selector parent=page. I asked this recently and that's the best way to do it. 

For the actual dates - Is the date used as the title? if so that should be fine. If not use "Label field" and use your date field. This should give you a drop down with all the dates and selecting them will create that relationship with the cruise page.

  • Like 2
Link to comment
Share on other sites

Hello Tom, 

Thanks for that. I cant see how that would work (Iam probably missing something.) I dont know what the parent page is until its selected then after that I need to get the children of that parent. 

Basically these booking pages (within the admin section) are separate from the cruises so I don't have a link between them.

Link to comment
Share on other sites

Thanks for you help guys I've had a change of direction as I seemed to be reinventing the wheel a little. Ive decided just to create the booking from the child in the first place.

Cheers

Jon

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...