Shopify themes, liquid, logos, and UX
Any suggestions on how to limit the number of characters in a text field? looking to limit to 20 characters in the example:
<p class="line-item-property__field">
<label for="Heading">please enter a heading</label>
<input required id="the-heading" rows="1" cols="20" type="text" name="properties[Heading]">
</p>
thanks!
Solved! Go to the solution
This is an accepted solution.
Hi 4cor,
You may want to try the maxlength attribute for input:
https://www.w3schools.com/tags/att_input_maxlength.asp
Thanks,
Lukasz
This is an accepted solution.
Hi 4cor,
You may want to try the maxlength attribute for input:
https://www.w3schools.com/tags/att_input_maxlength.asp
Thanks,
Lukasz
Appreciate it! We were trying to make a small adjustment and this small item was eluding us.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024