WPBakery vc_map populating from a field to another

I’m playing around with WPBakery Page Builder and its ability to be enhanced.
In order to achieve that, we can use an API function called vc_map (https://kb.wpbakery.com/docs/inner-api/vc_map/).
What I’m trying to achieve is populating values of “posttypes” param to a “dropdown” field. But I don’t figure out how to do that.
There might be a callback through param dependencies but it has to be written in JS and the API is in PHP.
So I will be glad if someone could show me the way 😉

Go to Source
Author: sugardaddy