Hi there,
you can try creating a Shortcode that has a Hook inside it with this PHP Snippet:
function portable_func($atts, $content = null) {
ob_start();
do_action('portable_hook');
return ob_get_clean();
}
add_shortcode('portable-shortcode', 'portable_func');
Then in your gravity form HTML add your [portable-shortcode]
shortcode.
Then create a GP Block Element – Hook to create your content and set the Hook to Custom
and in the field provide add : portable_hook
Can’t say how gravity will deal with that, or whether the styles will load correctly. But thats about all we have