Jon Posted January 20, 2016 Share Posted January 20, 2016 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 More sharing options...
Tom. Posted January 20, 2016 Share Posted January 20, 2016 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. 2 Link to comment Share on other sites More sharing options...
Jon Posted January 21, 2016 Author Share Posted January 21, 2016 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 More sharing options...
kongondo Posted January 21, 2016 Share Posted January 21, 2016 I think what you are looking for are chained/dynamic/dependant selects. ...http://www.appelsiini.net/2010/jquery-chained-selects There's been some talk before in the forums, e.g. this one: https://processwire.com/talk/topic/8729-how-to-create-a-form-with-dynamic-select-list-filtering-available-values-by-multiple-fields/ 1 Link to comment Share on other sites More sharing options...
Jon Posted January 21, 2016 Author Share Posted January 21, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now