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.

Image in posts, condition on categories

  1. Hi,
    I consider buying your plugin, but need to clarify 2 things.

    1. I want my users to be able to upload an image through the form and this image to automatically appear on the top of the submitted post. I can't figure out how to do that in demo. There is no "image" option in post content template creation. How can it be done?

    2. I wan't some fields to be displayed depending on the category selected by the user. For example if user selects "links" category to show "website field" and hide "content" and "title", if users select "article" category to show "content" and "title" and to hide "website field". Is there any simple way to do that?

    Can this two things be done out of the box?

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  2. 1) Yes, this is supported with Gravity Forms. You would use a Post Image field for the image to be uploaded. You would then use the "Content Template" feature of the Post Body field to create and configure a content template for the Post Body and insert the Post Image into the Post Body content.

    2) Conditional Logic isn't currently supported on the Post Category field. So you can't show/hide a field based on a Post Category selection. However, you could implement this using a standard Drop Down field and then using a little bit of custom code also set the Post Category to the item selected in the Drop Down. We could supply you with a code snippet if you need assistance setting this up.

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  3. Ok. Thanks.

    Concerning inserting in image. I don't see any reference to post image in "Create Post content template" droupdown. Not in the demo at least. Is it disabled there?

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  4. The field drop down on the content template gets populated after your form has been saved the first time so the fields are created. Once that happens the Insert Form Field drop down will be populated with all the fields on your form.

    You would then select the Post Image field, it would display a 2nd drop down to allow you to select which image size and alignment. It would then insert the appropriate content template variable into the content template. When the post is created, the content template would be utilized to create the post content.

    The demo is 100% functional due to the fact we have to disable some features and functionality because of the user access necessary to utilize it. Demos are hard with WordPress products because users will be malicious.

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  5. That great! I think I will buy gravityforms today.

    Just another small question.

    For example I want users to be able to submit either image or text (possibly with hotlinked images. Done through conditional logic - either image_upload or post_content will display.

    My question is can I use different templates for "image post" or "text post"? If user is posting an image I don't want to show "post content field" (but still want to use a template)

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  6. Currently only one Post Body field is supported on a single form. The Content Template doesn't currently support conditional logic within it. It is a feature we plan on adding, but we will have to create our own markup language for that to work properly. So you may have to use 2 different forms depending on what you are trying to do.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  7. Ok. Thanks.

    I bought GF multi license.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink