Skip to content

Get admin template in frontend template #944

Discussion options

You must be logged in to vote

Thanks for your feedback, @FrDH.

You might be able to make something like this work by building a custom module (we have something that might get you most of the way there): https://docs.solspace.com/craft/freeform/v4/guides/building-a-custom-module/

Another option might be going about this the opposite way. You could use Twig inside the Admin Notification textarea to insert the recipients from the template. Some steps:

  1. Don't use the dynamicNotification feature.
  2. Create a new field to collect/store the email address(es) from block.adminRecipients.
  3. Pass the block.adminRecipients data to Freeform's overrideValues parameter.

Your template code might look something like this:

{{ craft.freeform.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants