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

#   Registration - making 2 fields exclude each other

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

13 years 3 weeks ago [\#127561](#127561) by [pikkolo](/forum/user/21688-pikkolo "View pikkolo's Profile")  *[Registration - making 2 fields exclude each other](/forum/33-customers/862746-registration-making-2-fields-exclude-each-other#127561 "Hello, I hope i won't annoy too much with my question :cheer:  I need to modify my hikashop registration form so that if the customer is a single person, the &quot; tax code &quot; field is required and there is no &quot; vat code &quot;. And if the customer is a company, the &quot; vat code &quot; is required and there is no &quot; tax code &quot;.  With &quot; tax code &quot; i mean the personal fiscal code that every person has, and with &quot; vat code &quot; i mean the code that each company has.  How may i do what I explained ?  Thanks in advance for your kind disposal :cheer:")* was created by *[pikkolo](/forum/user/21688-pikkolo "View pikkolo's Profile")*

Hello, I hope i won't annoy too much with my question ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

I need to modify my hikashop registration form so that if the customer is a single person, the " tax code " field is required and there is no " vat code ". And if the customer is a company, the " vat code " is required and there is no " tax code ".

With " tax code " i mean the personal fiscal code that every person has, and with " vat code " i mean the code that each company has.

How may i do what I explained ?

Thanks in advance for your kind disposal ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

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

13 years 3 weeks ago [\#127616](#127616) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Registration - making 2 fields exclude each other](/forum/33-customers/862746-registration-making-2-fields-exclude-each-other#127616 "Hello, I hope i won't annoy too much with my question :cheer:  I need to modify my hikashop registration form so that if the customer is a single person, the &quot; tax code &quot; field is required and there is no &quot; vat code &quot;. And if the customer is a company, the &quot; vat code &quot; is required and there is no &quot; tax code &quot;.  With &quot; tax code &quot; i mean the personal fiscal code that every person has, and with &quot; vat code &quot; i mean the code that each company has.  How may i do what I explained ?  Thanks in advance for your kind disposal :cheer:")*

Hi,

You can do that by creating a custom dropdown field to select individual/company and then in your vat code and tax code fields, you use the "display limited to" option in order to limit each one to the corresponding value of the first custom field.
That however requires the Business edition of HikaShop.

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

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

[](#top)
