Customize contact form with new boxes in refresh theme

I want to customize the contact form. I have tried to go into the edit code section: section/contact.liquid, but I get somewhat lost. What should I do to make the contact form look like this below? I want all the fields besides the “subscribe to our newsletter” to be mandatory.

The goal is to make the section more like a signup form. Because we want the customer to fill out the contact form/signup, then they receive a mail with a code in it to unlock our product. Hope someone can help :slightly_smiling_face:

Hi,

You need to work on contact.liquid

Example code as per your requirements


The current contact form code can be edited to provide the functionality you’re looking for. Below is the code required for the checkbox field that can be added to the form via contact-form.liquid. Look for the tag around line 122 and replace with the following:


    
    

The other fields can be adjusted by altering their names, and adding the ‘required’ tag will make them a necessary part of the form.

For more information please see - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

If you’re not comfortable adjusting the code yourself, we can certainly help you implement this. Feel free to PM to discuss further.

Kind regards

Simon