I've built a Wordpress template file in my custom theme that displays a directory of members from a custom PHP file powered by a MYSQL database. This allows each member to be displayed on a different page displayed from this template.
I want to display a contact form powered by Gravity Forms on each member page- all using the same Gravity Form. This way people can send an email to the member through that member's profile page and in a way that keeps their email address private.
I was hoping to just use a shortcode but Gravity Form shortcodes does not give the ability to change the notification email address.
I could use a Gravity Forms function, but how do I change the notification email within a function?
The email address is already set as a PHP string but is set from a non-WordPress included file.
I did research this question including at the Gravity Forms support forum but without success. One option recommended to me was to send the notification email address as a hidden field in the form. I want to avoid this because I want to keep this email private. There may be other options open to me but as I am new to Gravity Forms and WordPress I could do with some help!