Execute JS function and display the returned response in macro parameter window

Hi Team ,

I’m new to confluence development. I need to develop a confluence macro by using which i can integrate a document management system in confluence.
My question is : I am having a javascript function which will return me the iframe html window . How can i call that Javascript function and display the returned result in macro popup window. Like in attached image
confluence_macro

Like basically i need to display that iframe window in macro edit pop view on left panel .

Thanks

Could you please help to guide me how can i achieve this ? Any help is highly appreciated.

Hi @aknight

I have seen your comments for customizing the macro parameter input window in some other question. I tried to use that to achieve what i mentioned in above screenshot. But I;m not able to load the iframe window .

Could you please help to provide some pointers how can i do that ?

Thanks