Martinus Posted October 31, 2022 Share Posted October 31, 2022 I have pages like this: Apparel (this is one department option out of 12, for select1) - Clothes (category option for select2) - Footwear (category option for select2) - etc. (category option for select2) As I see it, I need to populate options for select2, depending of chosen option in select1. But I do not want to have 12 select boxes. Does PW not have something to connect the two? Link to comment Share on other sites More sharing options...
bernhard Posted October 31, 2022 Share Posted October 31, 2022 1 Link to comment Share on other sites More sharing options...
Martinus Posted October 31, 2022 Author Share Posted October 31, 2022 @bernhardthanks for pointing me in the direction. It was a bit complicated to find a solution in that topic but apparently there is a simple way. My pages are as follows: Home - Departments -- Department1 --- CategoryA --- CategoryB -- Department2 --- CategoryX --- CategoryY I made one Input Field Type 'Select', type 'page reference', parent set to 'Departments'. I made one input Field Type 'Select', type 'page reference', no parent set, no template set, selector string is 'parent=page.department'. Then it works perfectly. But when I would set a parent for that last field type, the pages using those two dependent fields won't save - so it is best to not set a parent page there. 1 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