Gform_pre_render to to show Blog Posts

I am trying to use gform_pre_render to display dynamic content in place of an HTML content field.

Specifically, I am trying to show 3 Wordpress blog posts within an HTML field.

I want to do this so that, depending upon answers within a multi-part form, different posts are displayed.

Is it possible to call the Wordpress Loop within my functions.php and pre_render that content into my Gravity Form?

This is a long shot. Notionally I think it is possible, but it is just outside of my skill set. Thanks in advance for any help.

You don’t want pre_render. You want the JavaScript version:

I have a lot of experience with that if you need any help.