I have a modal box that pops up with a form anytime a person from a staff list is selected so that they can be contacted via the form without giving out their email address.

However, I'm having trouble figuring out how I can pass the staff members email address (which is in a field) to the freeform tag inside the modal without exposing their email address to the public.

I looked at the recipient parameter, but that wouldn't work since I don't want the user to have to select the recipient from a list in the modal again once they've selected a staff member to email.

1 Answer 1


You can add the notify paramater to your {exp:freeform:form} opening tag. Make sure the freeform tag is inside your staff fields loop and execute it like this:

{exp:freeform:form notify="{staff_email_field}" ...other parameters... }

  • Problem is that I the freeform is inside a modal window that gets called, so I need to somehow pass it the staff email address from the body of the site when the user clicks on that persons name.
    – DanH
    Feb 8, 2017 at 18:53
  • I suppose you load the modal with an embed? You can pass extra data with your embed. For example, email="{staff_email_field}", in the modal template, you can get this variable with the following tag: {embed:email}
    – Joel
    Feb 9, 2017 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.