Using pageField as Pop Up title

I feel like Im defenitly over complcating this - is there a simple way to add the pageField into the popup title? If not @moe , can we consider adding some ((pageField}} into the popup title input (i.e when viewing a details page.

So far I have a js workaround that’s more than a few lines to protect the title from showing up in multiple modals if they’re open at the same time.