r.loeber Posted July 17, 2020 Share Posted July 17, 2020 Is it possible to pre-select values in the Page Reference field? I am currently using 'Page List Select Multiple' that allows my users to pick from a large number of FAQ's. Can I pre-populate this field with a default 5 answers (Pages)? Allowing the user to add/remove from this default selection. Link to comment Share on other sites More sharing options...
dragan Posted July 17, 2020 Share Posted July 17, 2020 Not sure about pre-populating, but maybe this would help too: Define custom sort order (tab "children" -> manual drag-and-drop) in the parent page that holds your FAQs. Then simply move your 5 default answers/pages to the top, so that they're always the first ones in the list. Sort of like you usually see country dropdowns: The top countries at the top, followed by the rest in alphabetic order. Link to comment Share on other sites More sharing options...
kixe Posted July 17, 2020 Share Posted July 17, 2020 @r.loeber Welcome to the forum. This can be implemented with https://modules.processwire.com/modules/fieldtype-select-ext-option/ Link to comment Share on other sites More sharing options...
Robin S Posted July 19, 2020 Share Posted July 19, 2020 @r.loeber, I'm not sure why the "Default value" option that is available for most Page Reference inputfield types isn't available for Page List Select, Page List Select Multiple and Page Autocomplete, but I made a module that extends default value support to these inputfields: 5 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