- This topic has 2 replies, 2 voices, and was last updated 13 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Field Label: Any way to specify maximum characters?
I need to specify a maximum amount of characters(16) in the “Collect Customer Input” box.
eStore doesn’t have an option for limiting characters there. You could customize the code to add a “maxlenght” property to that text input field. To do this open the “eStore_button_display_helper.php” file and search for the following line of code:
<input type="text" name="custom_input" value="" class="eStore_text_input" />
Once you find it change it to the following:
<input type="text" name="custom_input" value="" class="eStore_text_input" maxlength="16" />
There will be two occurrences of the above so change them both.
You could also do something similar using JavaScript but that requires more code changes.
Thanks.