Opt-In check box on contact form not working

I added an opt-in check box under a contact form but when submitting on the form, it does not show up on the email result from the form; only name, email, phone number and message. What else do I need to do to make it functional? Below is a screenshot and the code used.

Code used on contact-form.liquid:

Opt-In to receive text messages from HTX Fluid Power at the phone number provided above.

Message frequency varies and may include order updates, product information/pricing, promotional products, etc. Message and data rates may apply. Opt-out at any time by replying 'stop' or 'unsubscribe'.

Hello @HTX-Fluid-Power ,

Name attribute is missing in input.
Update

to

If problem solved don’t forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

Thanks

Hello

I have the below code, but I am not receiving the checkbox status (checked or not checked) in the notification email. can you please help me?


        {%- assign formId = 'ContactForm' -%}
        {% form 'contact', id: formId %}
          {% include 'form-status', form: form, form_id: formId %}

          

            

              
              
            

            
              
              
              {%- if form.errors contains 'email' -%}
                
                  {{ 'general.accessibility.error' | t }} 
                  {% include 'icon-error' %}
                  {{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.
                
              {%- endif -%}
            

          

          
          

        

          

          
          

          

        {% endform %}
      

    
  

Hello @SamRiad ,

Same issue name attribute is missing
Update

to

Regards
Guleria

Thank you.

Now I have this code in place after updating:


          

the problem now is that the entire paragraph looks like a link (cursor becomes a hand) and the links are not underlined.

Any idea why?

Thank you again