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

#   Custom Field creation seems to be failing

##

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

10 years 2 months ago -  10 years 2 months ago [\#249755](#249755) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249755 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")* was created by *[icomex](/forum/user/4967-icomex "View icomex's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.16

I have a Product which requires a Custom Field ( "Item" ).

Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to "customtext_256_17_26_45" and no fields are added to the "cart product" or "order product" database tables at all.

The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.

If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.

Any suggestions?

Last edit: 10 years 2 months ago by [icomex](/forum/user/4967-icomex "View icomex's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#249801](#249801) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249801 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")*

Hello,

Can you provide some **screenshots** like these of :
- Your Custom field **listing** (Item)

[ ![CFlisting.png](/forum/attachment/33416) ](/forum/attachment/33416 "CFlisting.png")

- Your Custom field **Configuration**

[ ![CFconfig.png](/forum/attachment/33417) ](/forum/attachment/33417 "CFconfig.png")

**Note :** That's **we don't recommend** to manage your data **directly** in your data base, you have a risk to create some **side effects**...

Awaiting news from you.

Regards

- [ ![CFlisting.png](/forum/attachment/33416) ](/forum/attachment/33416 "CFlisting.png") [ ](/forum/attachment/33416?download=1 "CFlisting.png")
- [ ![CFconfig.png](/forum/attachment/33417) ](/forum/attachment/33417 "CFconfig.png") [ ](/forum/attachment/33417?download=1 "CFconfig.png")

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

10 years 2 months ago [\#249852](#249852) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  Replied by *[icomex](/forum/user/4967-icomex "View icomex's Profile")* on topic *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249852 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")*

I don't tweak the databases manually on live sites, but I do examine them carefully during development to learn how they should operate, and occasionally modify/insert a value and restore the table afterwards if an interface is obviously displaying missing or irregular information. In this case, a little tweaking on my dev site turned up the answer.

It turns out that the Custom Field type "Custom Text" is literally behaving as if it only inserts text, despite accepting a Regular Expression Check for input values. Since this type of item actually expects no input, it does not create any data fields in any tables in which to store it, and thus does not accept the provided custom field Column Name value. I was previously using the field to create a dynamic input list, one where the options depended upon the value of an existing Characteristic list.

Because the Custom Text type of Custom Field does not look for input, I've been forced to create a second Custom Field to receive the output from my own Custom Text interface, and then forced to use CSS to hide that second Custom Field from the viewer. This solution has worked - the javascript supplied value of the second Custom Field is added to the Cart Product and stored with the Order Product.

**Because I have two more sites that could make use of similar behavior I would like to suggest a few changes to HikaShop to make it simpler:**
**A)** remove the input Regular Expression Check from the Custom Text type, perhaps add a note that Custom Text supports no custom written input.

**![B)](/media/kunena/emoticons/9.png "B)")** add a Custom Field Type for a Hidden input field, and possibly include the option to hide any Custom Field's Label display.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg2NDAxLWN1c3RvbS1maWVsZC1jcmVhdGlvbi1zZWVtcy10by1iZS1mYWlsaW5nP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14325
-
-

10 years 2 months ago [\#249859](#249859) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249859 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")*

Hi,

Thank you for your feedback.

a. We'll do that for the next version yes.

b. I don't see why this would be necessary. If you want a hidden input, then it means that you're a developer because you're adding stuff to that hidden input. In which case, you could as easily have a normal "text" field and hide it with CSS.
Hiding the label could be an option but then, why not simply leave the label empty in the custom field ?

The following user(s) said Thank You: [icomex](/forum/user/4967-icomex "View icomex's Profile")

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

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

10 years 2 months ago [\#249927](#249927) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  Replied by *[icomex](/forum/user/4967-icomex "View icomex's Profile")* on topic *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249927 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")*

re: a) You might consider removing the Column Name field for Custom Text as well. As far as I can tell, it is not used either.

re: b) 'm just suggesting an explicit way to support the adding of hidden input fields, fields which others might use to include some predetermined but non-user-friendly data into the records regarding specific products rather than, as I am doing with increasing frequency, as a target for javascript. Another reason to do so is that recent javascript implementations seem to be policing CSS masked fields for security purposes: input fields with "display:none" are not reliably submitted or validated, so that data hidden by CSS is not surreptitiously inserted. I don't know if this is Javascript or JQuery doing this, but we've seen it several times in the past year. Also, using the CSS command "visibility:hidden" keeps the empty white space in the layout that the field would have used. It's just a great deal of hassle compared to a supported hidden input type.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg2NDAxLWN1c3RvbS1maWVsZC1jcmVhdGlvbi1zZWVtcy10by1iZS1mYWlsaW5nP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14325
-
-

10 years 2 months ago [\#249929](#249929) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Field creation seems to be failing](/forum/32-content-creation/886401-custom-field-creation-seems-to-be-failing#249929 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.16  I have a Product which requires a Custom Field ( &quot;Item&quot; ).  Whenever I create a new Custom Field, the form asks me for a column name but then HikaShop doesn't use it. I wind up with a database value in that field with a name similar to &quot;customtext&#95;256&#95;17&#95;26&#95;45&quot; and no fields are added to the &quot;cart product&quot; or &quot;order product&quot; database tables at all.  The creation process appears to be stopping the setup before completing but not throwing an error. However a field I created earlier in the site's history worked properly.  If I manually add columns to the aforementioned tables, the value I provide is not carried into the cart whenever the Product is added to the cart.  Any suggestions?")*

Hi,

Thank you for your feedback. We'll consider it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg2NDAxLWN1c3RvbS1maWVsZC1jcmVhdGlvbi1zZWVtcy10by1iZS1mYWlsaW5nP3RtcGw9bWFya2Rvd24=) 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.081 seconds

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