Multiple target choices when using SimpleJSON

Hello! I would like to know if it is possible to choose from multiple target choices when returning them with SimpleJSON. For example, I want the first dropdown to contain targets that are representing different databases and when you choose your database, then you select from the next dropdown what table from that DB you want to represent. I currently have in my panel 2 dropdowns but one is Grafanas dropdown and has ‘timeserie’ and ‘table’ choices and the other one has choices that I’m returning from my api. So can you tell me, is it possible to add another dropdown?
Here is the picture of what I currently have:
grafComm