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

#   Field display only if completed

##

- **[rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")**
- [![rtmetalli's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/31675-rtmetalli "View rtmetalli's Profile") Topic Author
- [ Offline](/forum/user/31675-rtmetalli)

Less More

- Posts: 35
- Thank you received: 0
-
-

7 years 3 months ago [\#309292](#309292) by [rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")  *[Field display only if completed](/forum/33-customers/897991-field-display-only-if-completed#309292 "-- url of the page with the problem -- : rtmetalli.it  hi, I would like to show the PEC field in the registration phase only if the company field is filled in, how can I do it?")* was created by *[rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")*

-- url of the page with the problem -- : rtmetalli.it

hi, I would like to show the PEC field in the registration phase only if the company field is filled in, how can I do it?

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

7 years 3 months ago [\#309301](#309301) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Field display only if completed](/forum/33-customers/897991-field-display-only-if-completed#309301 "-- url of the page with the problem -- : rtmetalli.it  hi, I would like to show the PEC field in the registration phase only if the company field is filled in, how can I do it?")*

Hi,

I don't see any "PEC" field on your registration ?
[ monosnap.com/file/DZnsKcfsyTXct9Dkhv1pYX2BL4zTRy](https://monosnap.com/file/DZnsKcfsyTXct9Dkhv1pYX2BL4zTRy)
Anyways, in the settings of that custom field, you have a "display limited to" that you can use to only display a field for one value of another field.
So what I would recommend is to create first a custom field "type" where the customer can choose "individual" or "company" and then use the "display limited to" setting of the "company" field and the "PEC" field to only display when that "type" field is set to "company" and activate the "required" setting of the "company" field.
That way, when "company" is selected, the company field will have to be filled and thus you'll be sure that the customer can only use the PEC field if the company field is also filled.

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

- **[rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")**
- [![rtmetalli's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/31675-rtmetalli "View rtmetalli's Profile") Topic Author
- [ Offline](/forum/user/31675-rtmetalli)

Less More

- Posts: 35
- Thank you received: 0
-
-

7 years 3 months ago [\#309336](#309336) by [rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")  Replied by *[rtmetalli](/forum/user/31675-rtmetalli "View rtmetalli's Profile")* on topic *[Field display only if completed](/forum/33-customers/897991-field-display-only-if-completed#309336 "-- url of the page with the problem -- : rtmetalli.it  hi, I would like to show the PEC field in the registration phase only if the company field is filled in, how can I do it?")*

You are great, thanks it was what I wanted to do, but I didn't get it. The pec field does not display it because I only did tests, then I failed and I disabled everything.

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

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