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

#   Conditional fields on new address

##

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

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

8 years 2 months ago [\#298048](#298048) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#298048 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.0.31

I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.

Maybe a bug...

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTc0MC1jb25kaXRpb25hbC1maWVsZHMtb24tbmV3LWFkZHJlc3M/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: 86584
- Thank you received: 14325
-
-

8 years 2 months ago [\#298056](#298056) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#298056 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Hi,

First please check with the default template of Joomla and check if you have a javascript error in the console of your browser when you reproduce the problem.
Because it's likely that it comes from something else messing with the javascript to handle the hide/display system of the custom fields on the page where it doesn't work.
Also, please provide a link to the page where it doesn't work and instructions to reproduce the issue.

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

8 years 1 month ago [\#299384](#299384) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#299384 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Evening Nicolas,

I have the same problem on the Cpanel page, checkout and registration pages are working fine.

On the edit or new address page the toggle function for the custom fields is not working and by default all options are displayed.

I did try to compare the address/show.php with the checkout/show_block_address.php but did not find the cause of the problem.

I also did disable all plugins, some other software and did try the Protostar template but the problem is the same.

The only (small) problem I find on the checkout page is the error message generated if there is no shipping address. If the shipping address is missing the error message does not give a clear indication that it concerns the missing shipping address, it only mentions that no valid shipping method could be found.

I think that the problem already did occur in Hikashop version 3.5.1 but form some reason I did not notice it until now.

If you need the login information just let me know.

Regards, Rene

HikaShop Business: 4.0.0 (20.10.2018)
Joomla 3.8.13

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 1 month ago [\#299406](#299406) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#299406 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Hello Rene,

Can you show us some screenshots of :
- the issue that you are having
- the configuration page of custom fields which are not working properly ?

Thank you !
Kind regards,
Mohamed Thelji.

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

8 years 1 month ago [\#299424](#299424) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#299424 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Afternoon Mohamed,

please see the attached images, the checkout images are as it should be the Cpanel has the problem that the conditional fields are not working.

I did not include the checkout error message, but if there is no shipping address or the product weight is not found in the shipping tables the error message is the same.

If you need more just let me know.

Regards, Rene

- [ ![Cpanel&#95;edit&#95;address.png](/forum/attachment/45160) ](/forum/attachment/45160 "...it&#95;address.png") [ ](/forum/attachment/45160?download=1 "...it&#95;address.png")
- [ ![Checkout&#95;edit&#95;address&#95;private&#95;customer.png](/forum/attachment/45161) ](/forum/attachment/45161 "...e&#95;customer.png") [ ](/forum/attachment/45161?download=1 "...e&#95;customer.png")
- [ ![Checkout&#95;edit&#95;address&#95;business&#95;customer.png](/forum/attachment/45162) ](/forum/attachment/45162 "...s&#95;customer.png") [ ](/forum/attachment/45162?download=1 "...s&#95;customer.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTc0MC1jb25kaXRpb25hbC1maWVsZHMtb24tbmV3LWFkZHJlc3M/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: 86584
- Thank you received: 14325
-
-

8 years 1 month ago [\#299482](#299482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#299482 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Hi,

Thank you for that.
I was able to reproduce the problem and add a patch for it on our end.
The issue came from the address/show.php where the code: Code:

id="hikashop_user_address_&lt;?php echo $this-&gt;address-&gt;address_id; ?&gt;_&lt;?php echo $fieldname;?&gt;"

should actually be: Code:

id="hikashop_address_&lt;?php echo $fieldname; ?&gt;"

This lead to the javascript toggle system to not find the rows to hide/display and thus they were left always displayed.
If you have HikaShop 4, you can just download the install package on our website and install it on yours again to get the patch.

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

8 years 1 month ago -  8 years 1 month ago [\#299492](#299492) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Conditional fields on new address](/forum/27-checkout/895740-conditional-fields-on-new-address#299492 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31  I have some conditional fields. A radio field that have an option that show/hide another field if selected or not. Both fields are required. In the registration process thei work as intended (if I select the option in the first field than the second field is shown) meanwhile during the checkout process or even on user account managing address all the fields are displayed soon.  Maybe a bug...")*

Afternoon Nicolas,

thank you and thank you Mohamed, problem solved!

Regards, Rene

Last edit: 8 years 1 month ago by [EnerW](/forum/user/38634-enerw "View EnerW's Profile").

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

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