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.

Conditional post

  1. jbdurand
    Member

    I would like to insert images, text or form fields in a generated post under conditions. Is it possible?
    Exemple: if The user has checked a box field The generated post should include a specific picture And text. If The box is not checked the picture And text should not be included in the post.
    So far i have not found how to do that.

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  2. Currently conditional logic does not exist for the content template functionality of the Post Body field. So currently this isn't possible as a built in feature.

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  3. jbdurand
    Member

    I am awfully worried because I really need this feature.
    if I set up a multiple choice field then when I use the "Create content template" it is possible to display the text of the value of the "field choice" in the post.
    Would it be possible to put some html instead of this text (I would insert the thml code to display the picture)
    In my projet I have logos for types of activities and I want to display in the generated post the selected activity logo and not only the activity name.
    Maybe you will have a brilliant idea...
    Your plugin is so great...

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  4. This isn't possible as a feature of the visual form builder.

    However it would be possible with custom code and available Gravity Forms API hooks/filters.

    How experienced are you with PHP and WordPress development, specifically working with hooks/filters?

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  5. jbdurand
    Member

    I can ask a php developer to look at this but do you think it will be possible to keep that code working when you release new versions of gravity or would it lead to upgrading problems in the future?

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  6. The custom code would reside outside the core plugin files themselves so upgrading wouldn't impact the customization UNLESS we changed something associated with that functionality in the core. So it's possible, but most likely the customization would work fine even after upgrading. If not, it would require a small change at most.

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink

This topic has been resolved and has been closed to new replies.