Support » Plugin: Post My CF7 Form » Feature request: selecting parent category or taxonomy

  • Resolved Nikhil VJ


    From seeing the select2 jquery library I gathered you’re using that. There is an extension of it called select2-to-tree that enables selecting parents in the hierarchy. With hierarchical nesting of categories and taxonomies, I want to be able to choose even a category/taxonomy that has children under it. Presently the dropdown makes this un-selectable. Please try to implement this select2-to-tree extension instead of just select2?

    Use case: For region selection, we have arranged the regions by Continent > Country > State. We want to enable the user to choose Continent or Country also. At present, those options are disabled and user is only being able to choose a state.

    Practically speaking, this children-only limitation is rendering support for hierarchical categories / taxonomies non-existent.

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet


    there is already a built-in hooks to switch off the grouping of options within select fields as well as select2 js transformation. However, there is currently no way to add custom classes and attributes to the option elements.

    So, I made a few additions and released v3.8. There are now 2 extra hooks added to allow you to add custom classes and extra attributes.

    I have added a new FAQ #22 with an example how to use these filters to transform a select element into select2tree field.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request: selecting parent category or taxonomy’ is closed to new replies.