The custom field I created disappears upon submitting the document.
Submitting a document turns it into read-only mode. If the custom field does not have any value it will not show up.
If you plan to use this custom field even while the document is submitted make sure you check the “Allow on submit” property for that field.