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

#   Mandatory Product Field when ordering

##

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

Less More

- Posts: 6
- Thank you received: 1
-
-

8 years 11 months ago [\#284348](#284348) by [sascha](/forum/user/54374-sascha "View sascha's Profile")  *[Mandatory Product Field when ordering](/forum/25-install-update/893169-mandatory-product-field-when-ordering#284348 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hey,  I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.  What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order. Is there a function like that?  Thank you.")* was created by *[sascha](/forum/user/54374-sascha "View sascha's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2

Hey,

I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.

What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order.
Is there a function like that?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MzE2OS1tYW5kYXRvcnktcHJvZHVjdC1maWVsZC13aGVuLW9yZGVyaW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

8 years 11 months ago [\#284355](#284355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mandatory Product Field when ordering](/forum/25-install-update/893169-mandatory-product-field-when-ordering#284355 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hey,  I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.  What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order. Is there a function like that?  Thank you.")*

Hi,

Sure, you can use either custom fields of the table "item" (on the product page) or custom fields of the table "order" (on the checkout) to do that:
[ www.hikashop.com/support/documentation/4...shop-field-form.html](https://www.hikashop.com/support/documentation/42-hikashop-field-form.html)
You can configure them via the menu Display&gt;Custom fields.

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

8 years 11 months ago [\#284426](#284426) by [sascha](/forum/user/54374-sascha "View sascha's Profile")  Replied by *[sascha](/forum/user/54374-sascha "View sascha's Profile")* on topic *[Mandatory Product Field when ordering](/forum/25-install-update/893169-mandatory-product-field-when-ordering#284426 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hey,  I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.  What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order. Is there a function like that?  Thank you.")*

Hey,

Great, thank you for the answer. Works perfectly. I used the 'Order' way, since it is just mandatory for some products, not the whole catalog.

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

8 years 11 months ago [\#284496](#284496) by [sascha](/forum/user/54374-sascha "View sascha's Profile")  Replied by *[sascha](/forum/user/54374-sascha "View sascha's Profile")* on topic *[Mandatory Product Field when ordering](/forum/25-install-update/893169-mandatory-product-field-when-ordering#284496 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hey,  I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.  What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order. Is there a function like that?  Thank you.")*

Hi Nicloas,
It works great so far. Just one more thing, is it possible, that beside a maximum length, I can set a minimum length for the field?
I'm using the field type 'text area' and would need the customer to put in a 17 digit combination of letters and numbers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MzE2OS1tYW5kYXRvcnktcHJvZHVjdC1maWVsZC13aGVuLW9yZGVyaW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

8 years 11 months ago [\#284500](#284500) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mandatory Product Field when ordering](/forum/25-install-update/893169-mandatory-product-field-when-ordering#284500 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hey,  I tried to find a solution online and in the forum, but couldn't find anything, maybe someone can help me out.  What I need is, that if the customer orders a specific product, he needs to fill out a field with a number before he can submit the order. Is there a function like that?  Thank you.")*

Hi,

Yes, you can use the "Regular expression check" setting of the custom field to force that.
For example: Code:

[a-zA-Z0-9]{17,}

[ www.regular-expressions.info/tutorial.html](https://www.regular-expressions.info/tutorial.html)

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

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