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.

Form to draft not working properly

  1. astahl11
    Member

    I'm using Gravity Forms to assist in getting career interviews on my site http://www.jobshadow.com. They will be published as posts after people complete the form.

    When I test the form on the site http://www.jobshadow.com/add-your-interview
    it shows up properly in the form entries but won't let me edit them in the draft form.

    The questions on the form don't show up and only 1 of the answers typically shows up.

    So, for instance. I submitted the form and answered all the 16 questions with Test 1, Test 2, etc. and in the edit field of the wordpress draft all that showed up was Test 16.

    Any thoughts? Using Thesis Theme by the way.

    The email notifications work fine as well. The only issue is in the drafts area of Wordpress.

    Posted 14 years ago on Saturday October 30, 2010 | Permalink
  2. There is no way to determine what is going on without looking at your admin and seeing how you have things setup. If you can send us a WordPress admin login for this site we would be glad to take a look. You can send this to us via our Contact Us form and reference this forum post.

    Posted 14 years ago on Monday November 1, 2010 | Permalink
  3. astahl11
    Member

    Shot ya'll the login info. Absolutely love the plugin by the way, I'm sure I've got something jacked up on my side of things here. Let me know what you think. Thanks!!

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink
  4. astahl11
    Member

    Bump...any idea on when I can get this looked at? Thanks.

    Posted 14 years ago on Thursday November 4, 2010 | Permalink
  5. The issue is you have multiple Post Body fields on the form. Only one Post Body field is supposed to be used.

    You can't add multiple Post Body fields, if you do only the last one is actually stored because it doesn't know what to do with the others. In the upcoming 1.5 release there is validation in place to prevent you from adding multiple Post Body fields.

    Posts only have one Post Body. They don't have multiple. This is why only one is being stored.

    If you need to insert the value of multiple fields into the Post Body then you need to use the Post Content Template feature that is on the Post Body field. This allows you to insert the value of multiple fields in your Post Body to dynamically create it. If you turn this feature on then you need to use the Insert Form Fields dropdown to insert the field values you want to use in your Post Body, similar to how you create Notifications.

    Posted 14 years ago on Thursday November 4, 2010 | Permalink
  6. hamedf
    Member

    Hi,

    i have a similar issue.

    I am using different post bodys depending on conditional logic.

    So if the user chooses a specific variable, it will use that post body - otherwise i want to use another post body.

    Is this not possible?

    How would it be possible to use conditional logic for post body?
    Same problem by the way for the post title.

    Looking forward for your help.

    Hamed

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  7. Hamed,
    Version 1.5 won't allow you to have more than one post body or post title field.

    What you can do in your case is to add one post body to the form, mark it as admin only and set the Post Content Template to include other textarea fields in your form (i.e. {Textarea_a:1}{Textarea_b:2}). You will then add these two regular text area fields and configure the conditional logic to them (like you are doing now with the post body)

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  8. hamedf
    Member

    Hi Alex,

    thanks, but this is how i have done it already.
    I need to insert different text structure around the {Textarea_a:1}.
    Is there any way i can realize this?

    It would be so much better if you can use conditional logic in addition to the post body and even post title * and even post category.

    This way you can adjust everything.

    For example : I have a drop down menu where one can choose what kind of content the user is providing ( link, video, image or text ). Then, accordingly, i wanted to put it into differnt categories. Plus, the body content would change.

    Is there any way i could realize this? If not, i would really suggest you to fully integrate conditional logic with various post elements.

    Thanks,
    Hamed

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  9. Hamed,
    Unfortunately, this is not possible in the current version unless you use one of the hooks and change the post body via PHP. If using PHP is an option, I can send you a code snippet

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  10. I would like to know how to do that, too. I have been trying for two days to figure out how to get conditional logic to work with my new form. Then I finally discovered that conditional logic does not work with categories. Aaarrgh. This complicates thing. I was hoping to use this for a directory interface.

    Posted 13 years ago on Wednesday December 15, 2010 | Permalink
  11. Hi I've been mulling this over in my head tonight and was thinking you could use the wp_insert_post() inside a 'hidden' form input if you have a plugin to activate php parsing.

    1. change body to textareas.
    2. create a hidden field.
    3. write your php statement or use a plugin that lets you call php in a shortcode.
    4. php will need an if statement to check the textarea has something in it.
    5. then call wp_insert_post(). see http://wordpress.org/support/topic/254439

    I'm going to put that together on a multipage form for submitting multiple separate posts, but populating custom fields instead of the_content.

    It's not very elegant in fact it's down right ugly but it will work until RG implement the functionality.

    Posted 13 years ago on Saturday January 29, 2011 | Permalink