Populate Select2 field with another Select2 field in elementor

Viewed 140

I have a field where I get available post types, and I'd like my second select2 to be populated with taxonomies from the first select2.

I have a function written for both, but trying to get the data from "post_type" is proving tricky.

The below is causing an ajax loading issue in the page builder.

I've searched high and low but haven't found a solution.

Thanks in advance.

enter image description here

1 Answers

I'm also having the same doubt on how to accomplish this same behavior within elementor widget.

I think it can be done by creating your own select2 control and passing the options using your own created js file.

Has anyone solve it with elementor built in methods?

Related