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.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024