Automatically fill some fields on ++add++Document? (Plone 6 Classic)

See How to prefill the title of a dexterity add form and Populating / prefilling a form field by URL Query String does not work