Why isn't the required attribute working in a textarea?

Solved

Why isn't the required attribute working in a textarea?

FedeMedina
Shopify Partner
2 0 0

Adding required to a text area does not work

 

<textarea type="text" rows="20" cols="40" id="custom_input_large" name="properties[{{ current_variant.title }}]"  form="{{ product_form_id }}" required> </textarea>

 

 

 


But the same with an input text if it works

<input name="properties[{{ current_variant.title }}]" form="{{ product_form_id }}" required>

 

 

 

Accepted Solution (1)

Guleria
Shopify Partner
4083 801 1154

This is an accepted solution.

Hello @FedeMedina ,

 

There is  a empty space inside the textarea, remove it.

 

<textarea type="text" rows="20" cols="40" id="custom_input_large" name="properties[{{ current_variant.title }}]"  form="{{ product_form_id }}" required></textarea>
- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 2 (2)

Guleria
Shopify Partner
4083 801 1154

This is an accepted solution.

Hello @FedeMedina ,

 

There is  a empty space inside the textarea, remove it.

 

<textarea type="text" rows="20" cols="40" id="custom_input_large" name="properties[{{ current_variant.title }}]"  form="{{ product_form_id }}" required></textarea>
- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
FedeMedina
Shopify Partner
2 0 0

ily ❤️