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

#   The length of the default value of the custom field

##

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

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 2 months ago [\#345189](#345189) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  *[The length of the default value of the custom field](/forum/26-product-category-display/905093-the-length-of-the-default-value-of-the-custom-field#345189 "Is it possible to change the default value of the custom field from 255 e.g. to 500 characters? Best Regards Tomek")* was created by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")*

Is it possible to change the default value of the custom field from 255 e.g. to 500 characters?
Best Regards
Tomek

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUwOTMtdGhlLWxlbmd0aC1vZi10aGUtZGVmYXVsdC12YWx1ZS1vZi10aGUtY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 86591
- Thank you received: 14329
-
-

4 years 2 months ago [\#345198](#345198) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[The length of the default value of the custom field](/forum/26-product-category-display/905093-the-length-of-the-default-value-of-the-custom-field#345198 "Is it possible to change the default value of the custom field from 255 e.g. to 500 characters? Best Regards Tomek")*

Hi,

The default value of a custom field can be changed by editing the custom field in the menu Display&gt;Custom fields. There, you have a setting "default" where you can enter/select the default value of the custom field.

There is no limit setting for the length of the text you can enter in a custom field.
However, it is limited by the type of the column corresponding to the custom field in the database.
By default the type of the column is LONGTEXT which gives a maximum length of 4,294,967,295 characters.
So if that's what you're talking about, I would recommend checking the column type for that custom field in the database. If it's set to "VARCHAR" then the maximum number of characters will be 255 characters.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUwOTMtdGhlLWxlbmd0aC1vZi10aGUtZGVmYXVsdC12YWx1ZS1vZi10aGUtY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 2 months ago [\#345199](#345199) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[The length of the default value of the custom field](/forum/26-product-category-display/905093-the-length-of-the-default-value-of-the-custom-field#345199 "Is it possible to change the default value of the custom field from 255 e.g. to 500 characters? Best Regards Tomek")*

Nicolas,
it is about the length of the default value, where, for example, we have a text field and the default value for a new product will be "product contains allergens". The default value field is of the varchar type, i.e. max 255 - won't anything break when you change the database to Longtext?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUwOTMtdGhlLWxlbmd0aC1vZi10aGUtZGVmYXVsdC12YWx1ZS1vZi10aGUtY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 86591
- Thank you received: 14329
-
-

4 years 2 months ago [\#345208](#345208) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[The length of the default value of the custom field](/forum/26-product-category-display/905093-the-length-of-the-default-value-of-the-custom-field#345208 "Is it possible to change the default value of the custom field from 255 e.g. to 500 characters? Best Regards Tomek")*

Hi,

Ok, I see what you mean. Then, open the hikashop_field table in your PHPMyAdmin and change the type of the "field_default" column from "VARCHAR" to "LONGTEXT".
Nothing will break. And you won't have issues with updates either, don't worry.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUwOTMtdGhlLWxlbmd0aC1vZi10aGUtZGVmYXVsdC12YWx1ZS1vZi10aGUtY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 2 months ago [\#345213](#345213) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[The length of the default value of the custom field](/forum/26-product-category-display/905093-the-length-of-the-default-value-of-the-custom-field#345213 "Is it possible to change the default value of the custom field from 255 e.g. to 500 characters? Best Regards Tomek")*

Thanks,
it works ![:)](/media/kunena/emoticons/3.png ":)")

Tomek

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUwOTMtdGhlLWxlbmd0aC1vZi10aGUtZGVmYXVsdC12YWx1ZS1vZi10aGUtY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.048 seconds

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