Using an Entry's Added Form in a template in Sprout Forms Using Sprout Forms and have added the Form Name > Select a Form to the Entry's field layout.


After I select a form on this Entry, what do I hook into to get this to display on my template?


I know from the documentation that you can specifically pass in the form's Handle {{ craft.sproutForms.displayForm('myForm') }}, but what do I need to do to get the drop-down form to display if there is one selected?
To dynamically display a Form that you've related to an Entry using a Sprout Forms Form relations field you can pass the handle of the form to the displayForm() tag in your template:

_entry.html

{% set formHandle = entry.formFieldHandle.first().handle %}

{{ craft.sproutForms.displayForm( formHandle ) }}


There is a doc page that describes this here: Relations Field on Entry Page and depending on where you want to redirect the user after they submit the form, Sprout Forms also supports relative redirects.