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

#   Additional fields and conditional fields problems

##

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

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 10 months ago [\#228111](#228111) by [marto42](/forum/user/38319-marto42 "View marto42's Profile")  *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228111 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")* was created by *[marto42](/forum/user/38319-marto42 "View marto42's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.14
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : [ shop.advanciumbg.com/hikashop-menu-for-hikashop-registration](http://shop.advanciumbg.com/hikashop-menu-for-hikashop-registration)

I have problem with new hikashop version 2.6.1.
[ shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout](http://shop.advanciumbg.com/hikashop-menu-for-categories-listing/checkout) - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called "ЕГН", witch must show only when the radio button from the top is checked "физическо лице".

p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.

- [ ![1.jpg](/forum/attachment/29132) ](/forum/attachment/29132 "1.jpg") [ ](/forum/attachment/29132?download=1 "1.jpg")
- [ ![2.jpg](/forum/attachment/29133) ](/forum/attachment/29133 "2.jpg") [ ](/forum/attachment/29133?download=1 "2.jpg")

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

10 years 9 months ago [\#228184](#228184) 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 *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228184 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Hello,
Can you show us through some screenshots how did you configured the field that are supposed to be displayed only if the radio button from the top is checked "физическо лице" ?
Thanks.

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

10 years 9 months ago -  10 years 9 months ago [\#228305](#228305) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228305 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Afternoon, same problem here on the customer registration page.

Please check the text/javascript file in the header of the page that will start with: Code:

&lt;!-- function hikashopSubmitForm(form, action) between line 123 and 131 you will find the following: &lt;!-- function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; if(!window.hikashop.fields_data &amp;&amp; window.hikashopFieldsJs) window.hikashop.fields_data = window.hikashopFieldsJs; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } //--&gt;

This should, at least, contain your conditional fields as listed in a previous, unsolved, post: Code:

&lt;!-- function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; if(!window.hikashop.fields_data &amp;&amp; window.hikashopFieldsJs) window.hikashop.fields_data = window.hikashopFieldsJs; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } window.hikashopFieldsJs = {}; window.hikashopFieldsJs = {}; window.hikashopFieldsJs = {}; window.hikashopFieldsJs = 'eet_nootjes'; window.hikashopFieldsJs = {}; window.hikashopFieldsJs = 'eet_wortels'; window.hikashop.ready(function(){ hikashopToggleFields('','keuze_1_2','user',0); }); //--&gt;

In the current version the conditional fields are missing on the registration page and Hikashop will display all the fields.

The address form, on the order check-out page is working correctly and the javascript will display the conditional fields: Code:

&lt;!-- function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; if(!window.hikashop.fields_data &amp;&amp; window.hikashopFieldsJs) window.hikashop.fields_data = window.hikashopFieldsJs; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } window.hikashopFieldsJs['address'] = {}; window.hikashopFieldsJs['address']['customertype'] = {}; window.hikashopFieldsJs['address']['customertype']['B'] = {}; window.hikashopFieldsJs['address']['customertype']['B']['address_company'] = 'address_company'; window.hikashopFieldsJs['address']['customertype']['B']['address_bedrijfsnaam2'] = 'address_bedrijfsnaam2'; window.hikashopFieldsJs['address']['customertype']['1'] = {}; window.hikashopFieldsJs['address']['customertype']['1']['address_street2'] = 'address_street2'; window.hikashopFieldsJs['address']['customertype']['1']['address_post_code2'] = 'address_post_code2'; window.hikashopFieldsJs['address']['customertype']['1']['address_plaats2'] = 'address_plaats2'; window.hikashopFieldsJs['address']['customertype']['1']['address_telephone2'] = 'address_telephone2'; window.hikashopFieldsJs['address']['customertype']['1']['address_vat'] = 'address_vat'; window.hikashopFieldsJs['address']['customertype']['1']['address_kvk'] = 'address_kvk'; window.hikashopFieldsJs['address']['customertype']['1']['address_website'] = 'address_website'; window.hikashopFieldsJs['address']['customertype']['1']['customtext_332_23_25_42'] = 'customtext_332_23_25_42'; window.hikashopFieldsJs['address']['customertype']['1']['address_facturatie_email1'] = 'address_facturatie_email1'; window.hikashopFieldsJs['address']['customertype']['1']['address_facturatie_iban'] = 'address_facturatie_iban'; window.hikashopFieldsJs['address']['customertype']['0'] = {}; window.hikashopFieldsJs['address']['customertype']['0']['address_street'] = 'address_street'; window.hikashopFieldsJs['address']['customertype']['0']['address_post_code'] = 'address_post_code'; window.hikashopFieldsJs['address']['customertype']['0']['address_city'] = 'address_city'; window.hikashopFieldsJs['address']['address_facturatie_email1'] = {}; window.hikashopFieldsJs['address']['address_facturatie_email1']['1'] = {}; window.hikashopFieldsJs['address']['address_facturatie_email1']['1']['address_facturatie_email2'] = 'address_facturatie_email2'; window.hikashop.ready(function(){ hikashopToggleFields('A','customertype','address',0); hikashopToggleFields('1','address_facturatie_email1','address',0); }); //--&gt;

Also check your user account page in Hikashop, you need to login as a user and it should display the custom fields and the conditional fields: Code:

&lt;!-- function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; if(!window.hikashop.fields_data &amp;&amp; window.hikashopFieldsJs) window.hikashop.fields_data = window.hikashopFieldsJs; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } window.hikashopFieldsJs['address'] = {}; window.hikashopFieldsJs['address']['customertype'] = {}; window.hikashopFieldsJs['address']['customertype']['B'] = {}; window.hikashopFieldsJs['address']['customertype']['B']['address_company'] = 'address_company'; window.hikashopFieldsJs['address']['customertype']['B']['address_bedrijfsnaam2'] = 'address_bedrijfsnaam2'; window.hikashopFieldsJs['address']['customertype']['1'] = {}; window.hikashopFieldsJs['address']['customertype']['1']['address_street2'] = 'address_street2'; window.hikashopFieldsJs['address']['customertype']['1']['address_post_code2'] = 'address_post_code2'; window.hikashopFieldsJs['address']['customertype']['1']['address_plaats2'] = 'address_plaats2'; window.hikashopFieldsJs['address']['customertype']['1']['address_telephone2'] = 'address_telephone2'; window.hikashopFieldsJs['address']['customertype']['1']['address_vat'] = 'address_vat'; window.hikashopFieldsJs['address']['customertype']['1']['address_kvk'] = 'address_kvk'; window.hikashopFieldsJs['address']['customertype']['1']['address_website'] = 'address_website'; window.hikashopFieldsJs['address']['customertype']['1']['customtext_332_23_25_42'] = 'customtext_332_23_25_42'; window.hikashopFieldsJs['address']['customertype']['1']['address_facturatie_email1'] = 'address_facturatie_email1'; window.hikashopFieldsJs['address']['customertype']['1']['address_facturatie_iban'] = 'address_facturatie_iban'; window.hikashopFieldsJs['address']['customertype']['0'] = {}; window.hikashopFieldsJs['address']['customertype']['0']['address_street'] = 'address_street'; window.hikashopFieldsJs['address']['customertype']['0']['address_post_code'] = 'address_post_code'; window.hikashopFieldsJs['address']['customertype']['0']['address_city'] = 'address_city'; window.hikashopFieldsJs['address']['address_facturatie_email1'] = {}; window.hikashopFieldsJs['address']['address_facturatie_email1']['1'] = {}; window.hikashopFieldsJs['address']['address_facturatie_email1']['1']['address_facturatie_email2'] = 'address_facturatie_email2'; window.hikashop.ready(function(){ hikashopToggleFields('A','customertype','address',0); hikashopToggleFields('1','address_facturatie_email1','address',0); }); //--&gt;

I will go back to the backup, since I do not want to spend more time on this issue, that did work fine in Hikashop 2.5 but is broken from version 2.6

Last edit: 10 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 9 months ago [\#228350](#228350) by [marto42](/forum/user/38319-marto42 "View marto42's Profile")  Replied by *[marto42](/forum/user/38319-marto42 "View marto42's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228350 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

I&#96;ve configured both registration pages, one personal ans one company edition. Everything&#96;s work great at hikashop version 2.4 but after upgarde to last 2.6.1 in the registration form was shown all the fields, of cource the radio button not worked. After restore backup to 2.4 version, the fields worked correctly. So I thing than the problem isn&#96;t how I configured my custom registration form, the problem with contional fields according to me is in version 2.6.
![:(](/media/kunena/emoticons/22.png ":(")

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

10 years 9 months ago [\#228443](#228443) 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 *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228443 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Hello,

> So I thing than the problem isn&#96;t how I configured my custom registration form, the problem with contional fields according to me is in version 2.6.

I tested it with different configuration through the last version of Hikashop and it worked fine, each time I selected a value for my custom field "c1" for example, the limited custom fields correctly displayed regarding the value of the "c1" custom field.

In your case the best solution will probably be to directly give us more information about your configuration through some screenshots so that we can reproduce it on our end.

@EnerW : We'll try to reproduce it on our end so that we can fix it.

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

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

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 9 months ago -  10 years 9 months ago [\#228499](#228499) by [marto42](/forum/user/38319-marto42 "View marto42's Profile")  Replied by *[marto42](/forum/user/38319-marto42 "View marto42's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228499 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

The link [ shop.advanciumbg.com/hikashop-menu-for-hikashop-registration](http://shop.advanciumbg.com/hikashop-menu-for-hikashop-registration) is from standart login joomla module in right possition-7.
In this case radio button from the form desn&#96;t work correctly, but if I buy some product the form display worked fine. Here are the correctly link [ shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout](http://shop.advanciumbg.com/hikashop-menu-for-categories-listing/checkout).
I think than my problem is in the plugin - Hikashop Registration Redirect Plugin.
p.s. After I migrate from 2.4 to 2.6.1 the both working form stopped work correctly. I do not configure anything - I&#96;ve just update.

Last edit: 10 years 9 months ago by [marto42](/forum/user/38319-marto42 "View marto42's Profile").

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

10 years 9 months ago -  10 years 9 months ago [\#228562](#228562) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#228562 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

@marto42

you have the same problem like me, the fields are missing from the javascript file (see below).

Please note that in Hikashop 2.6 at least the default values for the radio button(s) are displayed but they do not trigger the depending fields when you load the page. Code:

&lt;!-- function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; if(!window.hikashop.fields_data &amp;&amp; window.hikashopFieldsJs) window.hikashop.fields_data = window.hikashopFieldsJs; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } [color=#ff0000]window.hikashopFieldsJs = {};[/color] &lt;&lt;= these fields are missing }); //--&gt; &lt;!-- window.hikashopFieldsJs['reqFieldsComp']['register'] = ['email','password','password2']; window.hikashopFieldsJs['validFieldsComp']['register'] = ['Моля въведете стойност за полето E-mail','Моля въведете стойност за полето Парола','Моля въведете стойност за полето Проверка на паролата']; window.hikashopFieldsJs['password_different'] = 'Паролите не съвпадат'; window.hikashopFieldsJs['valid_email'] = 'Моля въведете валиден e-mail адрес'; window.hikashopFieldsJs['reqFieldsComp']['address'] = ['address_status','address_title','address_firstname','address_middle_name','address_lastname','address_egn','address_company','address_street','address_city','address_telephone','address_country','address_state']; window.hikashopFieldsJs['validFieldsComp']['address'] = ['Моля въведете стойност за полето Статус','Моля въведете стойност за полето Наименование','Моля въведете стойност за полето Име','Моля въведете стойност за полето Презиме','Моля въведете стойност за полето Фамилия','Моля въведете стойност за полето ЕГН','Моля въведете стойност за полето Фирма','Моля въведете стойност за полето Улица','Моля въведете стойност за полето Град','Моля въведете стойност за полето Телефон','Моля въведете стойност за полето Държава','Моля въведете стойност за полето Област']; window.hikashopFieldsJs['valid_phone'] = 'Моля въведете валиден телефон'; //--&gt;

Regards, Rene

Last edit: 10 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

10 years 9 months ago [\#229054](#229054) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#229054 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Hi,

As Mohamed, I also tried to have a radio custom address field and another one to be limited to one value of that radio custom field and it worked just fine with HikaShop 2.6.1
I went on your website and the JS code I see on that page [ shop.advanciumbg.com/hikashop-menu-for-hikashop-registration](http://shop.advanciumbg.com/hikashop-menu-for-hikashop-registration) indicates that there are no "display limited to" configured in the custom fields displayed on the page.
So from what I can see, the issue is a setting issue of your custom fields. Could you please check them ?

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

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

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 9 months ago -  10 years 9 months ago [\#229132](#229132) by [marto42](/forum/user/38319-marto42 "View marto42's Profile")  Replied by *[marto42](/forum/user/38319-marto42 "View marto42's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#229132 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

> nicolas wrote: Hi,
>
> As Mohamed, I also tried to have a radio custom address field and another one to be limited to one value of that radio custom field and it worked just fine with HikaShop 2.6.1
> I went on your website and the JS code I see on that page [ shop.advanciumbg.com/hikashop-menu-for-hikashop-registration](http://shop.advanciumbg.com/hikashop-menu-for-hikashop-registration) indicates that there are no "display limited to" configured in the custom fields displayed on the page.
> So from what I can see, the issue is a setting issue of your custom fields. Could you please check them ?

Hi, if you try to buy a [ product](http://shop.advanciumbg.com/hikashop-menu-for-categories-listing/product/1-x-saediniteli-pza)
will generated a link which is [ shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout](http://shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout) and at this link, the radio button works correctly. I do not know why in main registration joomla [ form](http://shop.advanciumbg.com/hikashop-menu-for-hikashop-registration) doesn&#96;t wants to work, see my configuration fields below.
[ ![status.png](/forum/attachment/29382) ](/forum/attachment/29382 "status.png")

[ ![egn.png](/forum/attachment/29383) ](/forum/attachment/29383 "egn.png")

- [ ![status.png](/forum/attachment/29382) ](/forum/attachment/29382 "status.png") [ ](/forum/attachment/29382?download=1 "status.png")
- [ ![egn.png](/forum/attachment/29383) ](/forum/attachment/29383 "egn.png") [ ](/forum/attachment/29383?download=1 "egn.png")

Last edit: 10 years 9 months ago by [marto42](/forum/user/38319-marto42 "View marto42's Profile").

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

10 years 9 months ago [\#229165](#229165) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#229165 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Hi,

Thank you for the additional information.
Change the code: Code:

$this-&gt;assignRef('address',$address); $fieldsClass-&gt;jsToggle($this-&gt;extraFields['address'],$address,0);

to: Code:

$fieldsClass-&gt;jsToggle($extraFields['address'],$address,0); $this-&gt;assignRef('address',$address);

in the file components/com_hikashop/views/user/view.html.php and that will fix the problem.
We're going to add that patch on our end too.

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

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

Less More

- Posts: 42
- Thank you received: 1
-
-

10 years 9 months ago [\#229188](#229188) by [marto42](/forum/user/38319-marto42 "View marto42's Profile")  Replied by *[marto42](/forum/user/38319-marto42 "View marto42's Profile")* on topic *[Additional fields and conditional fields problems](/forum/27-checkout/881948-additional-fields-and-conditional-fields-problems#229188 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- :   shop.advanciumbg.com/hikashop-menu-for-hikashop-registration  I have problem with new hikashop version 2.6.1.   shop.advanciumbg.com/hikashop-menu-for-c...ies-listing/checkout  - this link work correct with custom conditional fields. I&#96;ve made custom fileds for registration for both users- personal &amp; companies. But in new version doesn&#96;t work. I have fields called &quot;ЕГН&quot;, witch must show only when the radio button from the top is checked &quot;физическо лице&quot;.  p.s. After upgrade to last version the conditional fields does&#96;n work and every fields are shown and radio button not functional correctly.")*

Thanks, great support.
Now everything works correctly.

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

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