How to apply character limit in the Gift Wrap field

New Member
7 0 0

Hi there, I have a gift wrap option and I want to set a character limit to this field - please let me know what and where to copy/paste/edit this code to get that result. Thanks so much! 




Replies 2 (2)

Shopify Partner
88 15 20


You are going to want to include a "maxlength" attribute on the textarea element. That allows you to set the maximum number of characters the customer can enter.

I am unsure what theme you are using or how many lines of code your files are so I cannot tell anything more specific than that at this time.

Hope that helps!

- Rob Dukarski
Helping to make commerce better for everyone!
New Member
7 0 0

Hi there! 


I tried that after finding this similar post:


But it didn't work when I previewed it:



Update: Looks like I had to delete my text and type it in again - it does indeed stop after 50 characters. Thanks for your help!