[Skip to main content](#vessel-content)

#   Maxlength of custom text fields

##

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 3 months ago [\#21185](#21185) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Maxlength of custom text fields](/forum/2-general-talk-about-hikashop/21185-maxlength-of-custom-text-fields#21185 "In v1.5.2 can specify the size of a custom text field. However, cannot specify a maxlength to stop user entering more the X characters.  Could the custom fields screen be changed please to include a Max Length parameter and the code in the hikashopText field class changed to something like:")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

In v1.5.2 can specify the size of a custom text field.
However, cannot specify a maxlength to stop user entering more the X characters.

Could the custom fields screen be changed please to include a **Max Length** parameter and the code in the hikashopText field class changed to something like: Code:

$size = empty($field-&gt;field_options['size']) ? '' : 'size="'.intval($field-&gt;field_options['size']).'"'; $size .= empty($field-&gt;field_options['maxlength']) ? '' : ' maxlength="'.intval($field-&gt;field_options['maxlength']).'"';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIxMTg1LW1heGxlbmd0aC1vZi1jdXN0b20tdGV4dC1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 3 months ago [\#21188](#21188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Maxlength of custom text fields](/forum/2-general-talk-about-hikashop/21185-maxlength-of-custom-text-fields#21188 "In v1.5.2 can specify the size of a custom text field. However, cannot specify a maxlength to stop user entering more the X characters.  Could the custom fields screen be changed please to include a Max Length parameter and the code in the hikashopText field class changed to something like:")*

We'll add an option for that in next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIxMTg1LW1heGxlbmd0aC1vZi1jdXN0b20tdGV4dC1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 3 months ago [\#21201](#21201) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Maxlength of custom text fields](/forum/2-general-talk-about-hikashop/21185-maxlength-of-custom-text-fields#21201 "In v1.5.2 can specify the size of a custom text field. However, cannot specify a maxlength to stop user entering more the X characters.  Could the custom fields screen be changed please to include a Max Length parameter and the code in the hikashopText field class changed to something like:")*

Great thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIxMTg1LW1heGxlbmd0aC1vZi1jdXN0b20tdGV4dC1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[warriorfullights](/forum/user/3286-warriorfullights "View warriorfullights's Profile")**
- [![warriorfullights's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3286-warriorfullights "View warriorfullights's Profile")
- [ Offline](/forum/user/3286-warriorfullights)

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 3 months ago [\#21221](#21221) by [warriorfullights](/forum/user/3286-warriorfullights "View warriorfullights's Profile")  Replied by *[warriorfullights](/forum/user/3286-warriorfullights "View warriorfullights's Profile")* on topic *[Re: Maxlength of custom text fields](/forum/2-general-talk-about-hikashop/21185-maxlength-of-custom-text-fields#21221 "In v1.5.2 can specify the size of a custom text field. However, cannot specify a maxlength to stop user entering more the X characters.  Could the custom fields screen be changed please to include a Max Length parameter and the code in the hikashopText field class changed to something like:")*

That would be one of the good news I learned so far. It would give a bit of hint to users of the max length they could enter in a certain field. I am excited about this.

---

image missing http://imagicon.info/cat/5-47/bye.gif

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIxMTg1LW1heGxlbmd0aC1vZi1jdXN0b20tdGV4dC1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 3 months ago [\#21233](#21233) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Maxlength of custom text fields](/forum/2-general-talk-about-hikashop/21185-maxlength-of-custom-text-fields#21233 "In v1.5.2 can specify the size of a custom text field. However, cannot specify a maxlength to stop user entering more the X characters.  Could the custom fields screen be changed please to include a Max Length parameter and the code in the hikashopText field class changed to something like:")*

Note that the maxlength html parameter does not display anything to the user. It just prevents him of inputing more characters.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIxMTg1LW1heGxlbmd0aC1vZi1jdXN0b20tdGV4dC1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.334 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
