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

#   Custom fields "Display limited to" issue

##

- **[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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 3 weeks ago [\#216328](#216328) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216328 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")* was created by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.45-0
-- Browser(s) name and version -- : Firefox 41.0.1

HikaShop Business: 2.6.0 (05-10-2015)
Joomla version: 3.4.4
PHP Version: 5.4.45-0+deb7u1
Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m

Afternoon,

[ ![Custom&#95;fields.jpg](/forum/attachment/26863) ](/forum/attachment/26863 "Custom&#95;fields.jpg")

could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?

The setting of the default value is no longer working, but it will use the first value of the Values table instead.

As a result fields depending on the default value are not working as they should.

For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.

So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.

Regards, Rene

- [ ![Custom&#95;fields.jpg](/forum/attachment/26863) ](/forum/attachment/26863 "Custom&#95;fields.jpg") [ ](/forum/attachment/26863?download=1 "Custom&#95;fields.jpg")

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

Less More

- Posts: 86299
- Thank you received: 14273
-
-

11 years 3 weeks ago [\#216348](#216348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216348 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Hi,

This works fine for me.
If it doesn't work when the page is loaded, it usually indicates that there is a javascript error on the page preventing the custom field JS which initialize the display/hide of the custom fields to run.
Could you give a link to the page with the issue on your website so that we could look at the problem ?
Could you also provide a screenshot of both custom fields (the one with the display limited to setting used, and the one selected in the display limited to setting of the first one) ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 3 weeks ago [\#216610](#216610) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216610 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Afternoon Nicolas,

yesterday I did send you the website address information by private mail.

The two pictures are the address_account and the address_company, the address_company field should only show if you select “Zakelijk” (business) form the address_company.

Not sure about the javascript error, as far as I know I did nothing special except the update to Hikashop 2.6 and the removal of User Group FTW For Hikashop.

Before that it was just working fine, maybe go back to the 2.5 version from the backup?

Regards, Rene

[ ![address&#95;account.png](/forum/attachment/26933) ](/forum/attachment/26933 "...ss&#95;account.png")

[ ![address&#95;company.png](/forum/attachment/26934) ](/forum/attachment/26934 "...ss&#95;company.png")

- [ ![address&#95;account.png](/forum/attachment/26933) ](/forum/attachment/26933 "...ss&#95;account.png") [ ](/forum/attachment/26933?download=1 "...ss&#95;account.png")
- [ ![address&#95;company.png](/forum/attachment/26934) ](/forum/attachment/26934 "...ss&#95;company.png") [ ](/forum/attachment/26934?download=1 "...ss&#95;company.png")

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

Less More

- Posts: 86299
- Thank you received: 14273
-
-

11 years 3 weeks ago [\#216627](#216627) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216627 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Hi,

Thank you for the details. We've identified the problem. It's indeed a javascript error, which is caused by a modification in the 2.6.0 release.
I've added a patch to fix it.
Simply download the new install package via the menu My account&gt;My subscriptions on our website and install it on your website and it will add the patch.

The following user(s) said Thank You: [EnerW](/forum/user/38634-enerw "View EnerW's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 3 weeks ago [\#216721](#216721) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216721 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Morning Nicolas,

thank you, problem solved!

Regards, Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 2 weeks ago [\#216918](#216918) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#216918 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Evening Nicolas,

made some changes and either I did not test it as I should have or I am nuts, but it is not working and the problem is as it was.

The default field value is not loaded on opening of the registration page and the depending fields will only show if you make the selection business → private → business.

Just did load the latest version of Hikashop to be sure that I did install the latest version, but no improvement.

Any help would be appropriated since now I am stuck and will have to revert to only a Joomla registration page.

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 2 weeks ago [\#217183](#217183) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217183 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Evening Nicolas,

made a complete new install of Joomla and Hikashop 2.6 on a separate server to see if there is any difference in the behavior of the custom fields, but it is still not working.

I did test it with my own template and the standard Protostart template, but the result is the same, so I do not think that I did anything wrong.

Is there nobody else with these complaints or a solution?

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 2 weeks ago [\#217195](#217195) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217195 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Evening Nicolas,

So I did change back to Hikashop 2.5 and all is working as it should, clearly there is something wrong with the current Hikashop releases, would be nice if some of you could get back on this and fix it.

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 2 weeks ago [\#217407](#217407) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217407 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

I think I found the problem, in Hikashop 2.5 you could use numeric and alphabetic values for the values fields. In Hikashop 2.6 they are limited to alphabetic values only.

Actually really stupid, since the Title field (Mr./Mrs.) was functioning all the time in Hikashop 2.5 and 2.6 and I did not notice that ![:angry:](/media/kunena/emoticons/20.png ":angry:")

Rene
[ ![Hikashop&#95;2&#95;5&#95;Value&#95;fields.png](/forum/attachment/27073) ](/forum/attachment/27073 "...lue&#95;fields.png")

[ ![Hikashop&#95;2&#95;6&#95;Value&#95;fields.png](/forum/attachment/27074) ](/forum/attachment/27074 "...lue&#95;fields.png")

- [ ![Hikashop&#95;2&#95;5&#95;Value&#95;fields.png](/forum/attachment/27073) ](/forum/attachment/27073 "...lue&#95;fields.png") [ ](/forum/attachment/27073?download=1 "...lue&#95;fields.png")
- [ ![Hikashop&#95;2&#95;6&#95;Value&#95;fields.png](/forum/attachment/27074) ](/forum/attachment/27074 "...lue&#95;fields.png") [ ](/forum/attachment/27074?download=1 "...lue&#95;fields.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 2 weeks ago [\#217443](#217443) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217443 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

The difference as seen in Firebug, with the numeric value the selected="selected" is gone.

Although the correct value is now showing if you load the front page the fields depending on the selected value are still not showing and will only show if you switch between the to values ![:(](/media/kunena/emoticons/5.png ":(")

&lt;tr id="hikashop_address_address_account" class="hikashop_registration_address_account_line"&gt;
&lt;td class="key"&gt;
&lt;label for="address_account"&gt;Type account&lt;/label&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;select id="address_account" class="hikashop_field_dropdown" onchange="hikashopToggleFields(this.value,'address_account','address',0);" size="1" name="data[address][address_account]"&gt;
&lt;option id="address_account_B" value="B"&gt;Business&lt;/option&gt;
&lt;option id="address_account_P" selected="selected" value="P"&gt;Private&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;

tr id="hikashop_address_address_account" class="hikashop_registration_address_account_line"&gt;
&lt;td class="key"&gt;
&lt;label for="address_account"&gt;Type account&lt;/label&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;select id="address_account" class="hikashop_field_dropdown" onchange="hikashopToggleFields(this.value,'address_account','address',0);" size="1" name="data[address][address_account]"&gt;
&lt;option id="address_account_1" value="1"&gt;Business&lt;/option&gt;
&lt;option id="address_account_2" value="2"&gt;Private&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;

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

Less More

- Posts: 86299
- Thank you received: 14273
-
-

11 years 1 week ago -  11 years 6 days ago [\#217539](#217539) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217539 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Hi,

Thank you for the details.
Change the code: Code:

if($oneValue === $field-&gt;field_default){ $selected = (is_string($field-&gt;field_default) &amp;&amp; $oneValue === $field-&gt;field_default) &#124;&#124; is_array($field-&gt;field_default) &amp;&amp; in_array($oneValue,$field-&gt;field_default) ? 'selected="selected" ' : '';

to: Code:

$defaultValueEqualToCurrentValue = (is_numeric($field-&gt;field_default) &amp;&amp; is_numeric($oneValue) &amp;&amp; $oneValue == $field-&gt;field_default) &#124;&#124; is_string($field-&gt;field_default) &amp;&amp; $oneValue === $field-&gt;field_default; if($defaultValueEqualToCurrentValue){ $selected = ($defaultValueEqualToCurrentValue &#124;&#124; is_array($field-&gt;field_default) &amp;&amp; in_array($oneValue,$field-&gt;field_default)) ? 'selected="selected" ' : '';

in the file administrator/components/com_hikashop/classes/field.php and that will fix the problem.

Last edit: 11 years 6 days ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: indent fix

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 1 week ago [\#217667](#217667) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#217667 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Evening Nicolas,

this did fix the numeric problem, but that was something I could live with.. :whistle:

So now the correct value is showing if you load the page but the fields depending on the default value are still not showing and will only show if you switch between the to values.

The problem is the same for the registration page and the registration part of the checkout page.

Either I am doing something completely wrong or there is still a javascript error that prevents the initialization of the custom fields JS.

Is there anything else I could test to see were the JS problem comes from?

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 5 days ago [\#218332](#218332) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#218332 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Afternoon Nicolas,

On the register form page in the JS with: function hikashopSubmitForm(form, action)

hikashopToggleFields('','address_account_type','address',0);

the value 1 or 2 (depending on the default selection) before ,'address_account_type' is missing.

I think that is what will prevent the loading of the default value.

If I do a test on the on the order check out page with one field depending on an other it will work and does show the correct value

hikashopToggleFields('2','order_test1','order',0);

Please let me know if this is correct and, if so, what I should do to correct this.

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 1 day ago [\#218843](#218843) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#218843 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Any news on this, should be a simple fix?

Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

11 years 22 hours ago [\#218852](#218852) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#218852 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Just some extra information, the first part is from the registration page and the second part is from the order page.

On the registration page both values are loaded and on the order page only the set default values are loaded.

I suspect that, since both custom field values are loaded on the registration page, there will be no default value set for the single drop down or radio menu.

&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;

&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 = 'order_extra_information';
window.hikashop.ready(function(){

hikashopToggleFields('2','order_test1','order',0);
});
//--&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg3OTY2My1jdXN0b20tZmllbGRzLWRpc3BsYXktbGltaXRlZC10by1pc3N1ZT90bXBsPW1hcmtkb3du) 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") Topic Author
- [ Offline](/forum/user/38634-enerw)

Less More

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

10 years 8 months ago [\#229189](#229189) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Custom fields "Display limited to" issue](/forum/25-install-update/879663-custom-fields-display-limited-to-issue#229189 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.4.45-0 -- Browser(s) name and version -- : Firefox 41.0.1  HikaShop Business: 2.6.0 (05-10-2015) Joomla version: 3.4.4 PHP Version: 5.4.45-0+deb7u1 Browser: Firefox 41.0.1 / Chrome Version 45.0.2454.101 m  Afternoon,  could it be that the custom fields function “Display limited to” is not working in Hikashop version 2.6 as it did in the 2.5 version?  The setting of the default value is no longer working, but it will use the first value of the Values table instead.  As a result fields depending on the default value are not working as they should.  For instance if I have some fields that should only show if you select the none default value they do show if you load a page and will only hide as soon as you make the selection twice.  So fields that should only show if you select “Grapes” do show with the default value “Apples” in the initial view and are only hidden after you select “Grapes” and then select “Appels”.  Regards, Rene")*

Afternoon Nicolas,

With the current update to Hikashop 2.6.1 (07.02.2016) it does look like the conditional fields are working.

There is still a small problem with a condition based on an other condition (condition 1 -&gt; condition 2) but that is something I can live with.

I will do some more tests but at this moment I am very pleased with the result and consider this topic to be solved.

Rene

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

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

[](#top)
