How to get firestore auto generated document Id

I have created a form contains multiple fields that the user should enter to create a new document in a collection. The problem is I dont want the user to enter the value of the id field manually I want to get the firestore auto generated document Id and set it to that field, so that the document id and the id field value are the same.
Is there anyway to achieve that ?

Thank you!

You can simply leave this field empty and then it will be automatically generated by Firestore.