You can do it via Hubspot workflows to update the properties and define the entry as whether the contact was just created or if your custom lead source is empty and then complete your field based on what you captured. That’s how I would do it.
I do see your post is tagged with starter. Are you stuck in starter without workflows as an option?