Pass shortcode from button to popup template

Hi. I have lots of different buttons on a website that all open a popup. The contents of the popup just renders a shortcode (an Admin Frontend form). At the moment I have lots of popups, all the same in style but only with a different shortcode in each to render the appropriate form. Instead of having lots of different popup templates can I just pass the shortcode to 1 popup template and then the popup template renders the appropriate shortcode and therefore form? Thanks in advance!