How can I split pages from a selection field?