Include an email field in your form. Then use a content template for your post body. On the properties tab of your post body form field, you will see a check box that says "Create content template". Check that; you will create your content template in the textarea below. By default, the merge tag for the post body will be put automatically into the text area. That is the content which is submitted by the visitor into the field you set as post body. If you saved the form right now, nothing on the front end would look any different. The content template with just one field is the same as no content template at all.
But, here's what you need to do to get the email into the post body. Use the drop down "Insert a field" to insert the email address into your post. If it were field #2 in your form, the merge tag would look like this:
[php]
{Email:2}
Here is my form:
http://gravity.chrishajer.com/story-submission/
Here is the post I created:
http://gravity.chrishajer.com/2011/09/02/everything-is-everything/
This line of the post was generated by the content template:
This story was submitted by Lauryn Hill on 09/02/2011
Here's the content template that created the post body:
[php]
{Your story:4}
<div class="entry-meta"><span class="sep">This story was submitted by</span> {Identify yourself (First):1.3} {Identify yourself (Last):1.6} on {date_mdy}</div>
I used the name input and the date submitted, not the email. To use the email, if it were form field two, and your post body were field one, your content template might look like this:
[php]
{Post Body:1}<br style="clear:both;" />
Submitted by: <a href="{Email:2}">{Email:2}</a><br style="clear:both;" />
Does that help?
Posted 13 years ago on Friday September 2, 2011 |
Permalink