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

#   Documentation missing on custom fields

##

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

Less More

- Posts: 113
- Thank you received: 18
-
-

10 years 5 months ago [\#243379](#243379) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  *[Documentation missing on custom fields](/forum/32-content-creation/885142-documentation-missing-on-custom-fields#243379 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Firefox 47.0  I am trying to create a custom field that will be validated against a range of numbers. I would assume that's the intent of the &quot;Regular Expression Check&quot;. I've gone through the documentation and every forum posting trying to figure out how to setup this type of validation and found nothing that documents the intended use. Nor could I find an example on the demo site to try to figure out how it should be setup.  I am familiar with the creation and testing of regular expressions, but it's the expected setup in Hikashop I don't understand, now what is supposed to happen on the front-end in validation.  I created a custom field of type &quot;Text&quot; on the &quot;item&quot; table and entered a variety of valid regular expression for testing, including virtually every regex I found in this forum referencing expressions in other inquiries. No matter what I tried, the newly added custom field on the front-end lets me enter anything. It's as if the check isn't being fired.  Is there documentation on how to setup an expression-validated field in Hikashop? (I don't need documentation on regular expressions themselves)  Once setup, when is the validation performed - on field exit, when the user tries to add to cart or some other event? If the value entered fails the check, is it the &quot;Custom Error Message&quot; that is displayed? Do I need to do anything else to get the expression check to be run to validate the input?")* was created by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.17
-- Browser(s) name and version -- : Firefox 47.0

I am trying to create a custom field that will be validated against a range of numbers.
I would assume that's the intent of the "Regular Expression Check".
I've gone through the documentation and every forum posting trying to figure out how to setup this type of validation and found nothing that documents the intended use. Nor could I find an example on the demo site to try to figure out how it should be setup.

I am familiar with the creation and testing of regular expressions, but it's the expected setup in Hikashop I don't understand, now what is supposed to happen on the front-end in validation.

I created a custom field of type "Text" on the "item" table and entered a variety of valid regular expression for testing, including virtually every regex I found in this forum referencing expressions in other inquiries. No matter what I tried, the newly added custom field on the front-end lets me enter anything. It's as if the check isn't being fired.

Is there documentation on how to setup an expression-validated field in Hikashop?
(I don't need documentation on regular expressions themselves)

Once setup, when is the validation performed - on field exit, when the user tries to add to cart or some other event?
If the value entered fails the check, is it the "Custom Error Message" that is displayed?
Do I need to do anything else to get the expression check to be run to validate the input?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg1MTQyLWRvY3VtZW50YXRpb24tbWlzc2luZy1vbi1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) 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 5 months ago [\#243385](#243385) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Documentation missing on custom fields](/forum/32-content-creation/885142-documentation-missing-on-custom-fields#243385 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Firefox 47.0  I am trying to create a custom field that will be validated against a range of numbers. I would assume that's the intent of the &quot;Regular Expression Check&quot;. I've gone through the documentation and every forum posting trying to figure out how to setup this type of validation and found nothing that documents the intended use. Nor could I find an example on the demo site to try to figure out how it should be setup.  I am familiar with the creation and testing of regular expressions, but it's the expected setup in Hikashop I don't understand, now what is supposed to happen on the front-end in validation.  I created a custom field of type &quot;Text&quot; on the &quot;item&quot; table and entered a variety of valid regular expression for testing, including virtually every regex I found in this forum referencing expressions in other inquiries. No matter what I tried, the newly added custom field on the front-end lets me enter anything. It's as if the check isn't being fired.  Is there documentation on how to setup an expression-validated field in Hikashop? (I don't need documentation on regular expressions themselves)  Once setup, when is the validation performed - on field exit, when the user tries to add to cart or some other event? If the value entered fails the check, is it the &quot;Custom Error Message&quot; that is displayed? Do I need to do anything else to get the expression check to be run to validate the input?")*

Hi,

The regex validation is done when you click on the add to cart button.
Note that it requires the field to be required. So if your regex is not executed, it's probably because the field is not required.

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

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