Depending on the client you could suggest looking at the location bar to get the post ID, although I don’t think that will work for new posts.
I suppose you could create an ACF field group and dynamically add the post ID to a field value https://www.advancedcustomfields.com/resources/acf-load_value/