• Resolved lukekenny

    (@lukekenny)


    Some items in my products list have a sub-category, some do not.

    I can set up the Categories list in a hierarchy using radio buttons, which is fine until a subcategory is selected. After that, if the user selects a Category, the subcategory remains selected and no products are shown.

    How can the sub-category be deselected when a category is selected?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Luke,

    It looks like the issue only happens if you have one subcategory clicked, then you click a different top level category (i.e. not the top level category for the subcategory you already had clicked).

    The subcategory radio buttons have to be independent from the Category radio buttons or else, as you know, clicking on one radio button will just remove all the others.

    We can look to see if there’s a way to make it so that if you click on a different top level category, it removes selected subcategories from all other top level categories. I don’t know if or when we’ll be able to implement this.

    In the meantime, one thing you could try is setting the sub-category control type to checkbox (leaving the category control type on radio button). That way, you’ll still only be able to have one top-level category selected, but then you’ll be able to uncheck the previously-selected sub-category.

    Thread Starter lukekenny

    (@lukekenny)

    I was able to achieve this using JavaScript. Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deselect sub category when new category selected’ is closed to new replies.