Get {{ customer.tags[0] }} from hidden form field

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 }}">
        

just use the standard html convention type=“hidden” for hidden form fields and all good.

<input type="hidden" id="ContactFormCustomer" name="contact[Customer-id]" value="{{ customer.id }}">

Would you use the same for the page URL? Ie we would like to get the product URL from the contact form submission in a hidden field?