EDIT: To get customer id or specific tags from customer in hidden fields on contact form this worked for me when added into form liquid:
<label class='hide' for="ContactFormTag0">Tag0</label>
<input class='hide' type="text" id="ContactFormTag0" name="contact[Tag0]" value="{{ customer.tags[0] }}">
<label class='hide' for="ContactFormCustomer">Customer id</label>
<input class='hide' type="text" id="ContactFormCustomer" name="contact[Customer-id]" value="{{ customer.id }}">