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

#   Custom fields with

##

- **[thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")**
- [![thomas.eilers@gfse.org's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile") Topic Author
- [ Offline](/forum/user/84383-thomas-eilers-gfse-org)

Less More

- Posts: 33
- Thank you received: 4
-
-

4 months 5 days ago [\#372694](#372694) by [thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")  *[Custom fields with](/forum/27-checkout/910687-custom-fields-with#372694 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Firefox (new)  Hi,  in Custom fields there is a possiblity to check correct inputs via &quot;Regular expression check&quot;  I have a club and would like to verify the membership number with a custom field. Can I put in &gt;1500 membership numbers (per copy/paste) to check if the number is correct?  Thanks and regards, Thomas")* was created by *[thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 5.4.7
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox (new)

Hi,

in Custom fields there is a possiblity to check correct inputs via "Regular expression check"

I have a club and would like to verify the membership number with a custom field. Can I put in &gt;1500 membership numbers (per copy/paste) to check if the number is correct?

Thanks and regards,
Thomas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDY4Ny1jdXN0b20tZmllbGRzLXdpdGg/dG1wbD1tYXJrZG93bg==) 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: 86582
- Thank you received: 14322
-
-

4 months 5 days ago [\#372697](#372697) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields with](/forum/27-checkout/910687-custom-fields-with#372697 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Firefox (new)  Hi,  in Custom fields there is a possiblity to check correct inputs via &quot;Regular expression check&quot;  I have a club and would like to verify the membership number with a custom field. Can I put in &gt;1500 membership numbers (per copy/paste) to check if the number is correct?  Thanks and regards, Thomas")*

Hi Thomas,

Technically the regular expression check can hold that many numbers (you would join them into one pattern like ^(100001&#124;100002&#124;...)$, and there is no real size limit since it is stored in a text field), but I would advise against it for membership numbers, for one important reason:

HikaShop outputs the regex as the pattern attribute of the field in the page. So the full list of valid numbers ends up directly in the page source, and anyone can read all of them by viewing the source of the checkout page. For a club's membership numbers that usually defeats the purpose.

So:
- If the list is not confidential, the regex approach is fine. Format it as ^(number1&#124;number2&#124;...)$, keep the ^( and )$ anchors (HikaShop checks the value server side with an unanchored match, so without the anchors a value that merely contains a valid number would also pass), and set the field as required so the check always runs.
- If the numbers should stay private, the regex is not suitable, precisely because it exposes the whole list in the HTML. The clean way is a small custom plugin that validates the entered number on the server against a table (or against your club's system), so the list is never sent to the browser. That is custom development, but it is the only way to keep the list hidden and still validate the input.

The following user(s) said Thank You: [thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")

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

- **[thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")**
- [![thomas.eilers@gfse.org's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile") Topic Author
- [ Offline](/forum/user/84383-thomas-eilers-gfse-org)

Less More

- Posts: 33
- Thank you received: 4
-
-

4 months 4 days ago [\#372699](#372699) by [thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")  Replied by *[thomas.eilers@gfse.org](/forum/user/84383-thomas-eilers-gfse-org "View thomas.eilers@gfse.org's Profile")* on topic *[Custom fields with](/forum/27-checkout/910687-custom-fields-with#372699 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.7 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Firefox (new)  Hi,  in Custom fields there is a possiblity to check correct inputs via &quot;Regular expression check&quot;  I have a club and would like to verify the membership number with a custom field. Can I put in &gt;1500 membership numbers (per copy/paste) to check if the number is correct?  Thanks and regards, Thomas")*

Thank you Nicolas.

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

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