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

#   "Regular expression check" doesn't visible to single drop down list on backend

##

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

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

9 years 8 months ago [\#262632](#262632) by [almika](/forum/user/15732-almika "View almika's Profile")  *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262632 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")* was created by *[almika](/forum/user/15732-almika "View almika's Profile")*

-- HikaShop version -- : 2.6.4

Hi,

The "Regular expression check" doesn't visible to single drop down list on backend.

I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.

The same problem is in Hikashop 3.0.0

Best regards,

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

9 years 8 months ago [\#262653](#262653) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262653 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

Hi,

That's not a problem. It's done on purpose.
The goal of a regex check is that you can restrict what the customer can enter in the custom field.
If the custom field is a dropdown, you specify yourself what the customer can select and he can't select something you didn't add as a value of the custom field.
So there is no point in having a regex check. If you don't want the customer to select a value, simply don't add that value to the custom field.

So I don't see why you would need that ?

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

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

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

9 years 8 months ago -  9 years 8 months ago [\#262731](#262731) by [almika](/forum/user/15732-almika "View almika's Profile")  Replied by *[almika](/forum/user/15732-almika "View almika's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262731 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

Thank you, Nicolas, for your answer.

But, I really need this feature to prevent a user selecting the default options. Sometimes buyers are careless and forget to select the parameters of the product. It is about contact lenses.
I set the values:
Select the diopter
-1.5
-2.5
...
Then I check if the selected value is "Select the diopter" it means that the value is incorrect.

How it works you can see here: [ ](http://line22.ru/month/2313-purevision-multifocal-6-lenses)[ line22.ru/month/2313-purevision-multifocal-6-lenses](http://line22.ru/month/2313-purevision-multifocal-6-lenses). Try to add a product to cart.

And I ask to return this check for a single drop-down list so as it was in previous versions.

Best regards

Last edit: 9 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: removing quote of Nicolas previous message

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

9 years 8 months ago [\#262778](#262778) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262778 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

Hi,

You can do that without a regex.
Simply set the custom field as required and leave the "value" input of the "Select the diopter" value empty and the system won't let the customer move forward unless he selects something else.

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

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

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

9 years 8 months ago [\#262814](#262814) by [almika](/forum/user/15732-almika "View almika's Profile")  Replied by *[almika](/forum/user/15732-almika "View almika's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262814 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

> nicolas wrote: Hi,
>
> You can do that without a regex.
> Simply set the custom field as required and leave the "value" input of the "Select the diopter" value empty and the system won't let the customer move forward unless he selects something else.

Thank you, Nicolas

I did that way because there was that feature and I was unpleasantly surprised, you have removed it.
Now I have to fix it for all of my fields. I can do it. I hope that no one else has done the same way.

Best regards

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

9 years 8 months ago [\#262815](#262815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262815 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

Hi,

The fact that the regex field was displayed for dropdown custom fields was a bug, not a feature. And we've fixed it.
Each time someone has asked us on the forum how to do a "please select" choice for a dropdown, we've always told them to use the "required" mechanism, and never the regex field, which was only added last year.
As I said, there should be no reason to have that option for dropdowns.
Sorry that you have to redo your custom fields but we won't add that option to dropdowns.

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

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

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

9 years 8 months ago [\#262860](#262860) by [almika](/forum/user/15732-almika "View almika's Profile")  Replied by *[almika](/forum/user/15732-almika "View almika's Profile")* on topic *["Regular expression check" doesn't visible to single drop down list on backend](/forum/3-bug-report/888904-regular-expression-check-doesnt-visible-to-single-drop-down-list-on-backend#262860 "-- HikaShop version -- : 2.6.4  Hi,  The &quot;Regular expression check&quot; doesn't visible to single drop down list on backend.  I use many item custom fields of this type and I have regular expressions to chek it. There is no problem on my frontend, but I cann't see my regular expessions on backend.  The same problem is in Hikashop 3.0.0  Best regards,")*

No problem, Nicolas. I still love HikaShop.

Good luck!

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

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

[](#top)
