PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Draft post from form data

  1. I can get the rest but this has me stumped, and I have read for hours now through forum and found every custom option resolved but can't seem to find a simple how to for this.

    I have a simple "add your venue" form with input fields for name of venue, address, phone and website. I need to sort the venues on a category of State.

    My preference would be to have one page with the venues listed and sorted by state - but I can achieve that with a feed of the category posts and subpages. I would like to keep it separate in a custom post area so my normal posts can be just news, but I can wait for that as well, while I figure out custom posts.

    For now I just want to create a draft post from a form submission.

    I created the form, including the post fields.

    I submitted a test venue and received email with all data entered. At first I thought the entry wasn't there - but then found it by selecting the form from the dropdown - as I have 3 forms.

    Draft post was created but has no style.

    Perhaps I have to use CSS or shortcodes.

    Can you refer me to a simple explanation of how . The CSS pdf gives me a way to style a form but I cannot translate this to how to style the post entry.

    Also the title (I set to be unique) so it would show in the feed as the venue name. I embedded title in post but it displays as Add venue name (name of form). and add your venue page had a message that You may only enter each individual venue once - which is good except that the form is not showing any more.

    http://www.completetrivia.com/venues/add-your-venue

    What am I doing wrong?

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  2. I'm not sure what you mean by style the post. Posts are posts, they don't contain a lot of markup typically... just content. What exactly are you wanting to style?

    The Post Body content can be controlled using the Post Content Template option on the Post Body Field. By turning on the Post Content Template you can completely control the Post Body content using HTML, and insert form field values into the Post Body. It works similar to the Notification Message Body as far as allowing you to enter HTML and insert form field values.

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  3. I think I see - I simply inserted the fields so the post showed as "venue name street address" etc as per what was entered all running together. If I tag the fields <h1>{code that inserts field}</h1> and put break tags in, it will post and display with some style.

    Can I get the Google Map reference to show?

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  4. Yes, the Post Content Template accepts HTML. So you can format things using markup such as H1 tags, etc. I haven't tried inserting javascript such as Google Maps code, but it should work.

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  5. Not quite what I meant. On the submission of form data, there is a Map it link. This didn't pass to the draft post. Can it be passed and if so how?

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  6. The Map It link on the Entry Detail is a feature of the Entry Detail page. It's not saved with the form data. All it does is create a Google Maps link using the data from the Address Field. You could recreate this yourself by getting the Google Maps link and replacing the query string parameters with your form field values.

    Posted 13 years ago on Friday October 22, 2010 | Permalink
  7. Can you explain or link to a dummies version of "You could recreate this yourself by getting the Google Maps link and replacing the query string parameters (modify the plugin or use a function?) with your form field values." (Can you give example query?)

    As I understand your comment - the map link is there in my database but not created until after the form submission so it cannot be auto passed to the draft post.

    Do I perhaps need a google map plugin to display a map, if so do I need the Google map API. Or can I use this link, as is, manually? Perhaps with the pageview plugin, as an iframe...

    Posted 13 years ago on Friday October 22, 2010 | Permalink