Related page to display anchors as well?

Is it possible to display the anchors included in pages when selecting related page into a field?

Currently I have:
label: related page
type: pages
query: site.find(‘pages’).children.listed
multiple: false

Many thanks.

Not with a pages field. You could use a select field with a query from API, where you return a flat array of page name/anchor values.