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.

Content Template Field - Conditional Display

  1. elizabethanne
    Member

    I have built a very complicated form with multiple section breaks that appear using conditional logic based upon a checkbox field. Is there any way in the Post Body field, when I create a Content Template, to display certain fields only when the conditional logic is met?

    Simple example - checkbox with values A or B.
    If A is selected, single line text and a post image appears
    If B is selected, single line text, paragraph text, and two post images appear

    Content template would need to essentially do an if/then on A/B.

    Thanks!

    Posted 12 years ago on Thursday August 2, 2012 | Permalink
  2. David Peralty

    I don't think this is currently possible elizabethanne. Content Template is kind of a "dumb" feature in that it doesn't have any smarts/conditions/if-then support. It really is just pushing the values from other fields into the title or body field of a post.

    Posted 12 years ago on Thursday August 2, 2012 | Permalink
  3. elizabethanne
    Member

    boo, OK thanks for your fast response david! any chance that's on the list to update?

    Posted 12 years ago on Friday August 3, 2012 | Permalink
  4. David Peralty

    We are working on all kinds of conditional logic updates, I don't think that specific one is currently on the list, but I'll make sure it gets on there. If you were using custom fields and then having your theme display custom fields, then this wouldn't be an issue. You could set it up to display custom field values in certain ways dependent on what custom fields have values.

    Posted 12 years ago on Friday August 3, 2012 | Permalink
  5. elizabethanne
    Member

    this form basically has people either upload a photo album or upload a post type of thing. i'm just going to split it into two forms for now. thank you!

    Posted 12 years ago on Sunday August 5, 2012 | Permalink
  6. Rats. I am after the same functionality.

    But, I guess I can do my conditionals on the WP templating side just as easy. But, a +1 or whatever the kids are doing these days. :)

    Posted 12 years ago on Tuesday August 28, 2012 | Permalink
  7. I'll move this to feature requests. Thanks for the +1

    Posted 12 years ago on Tuesday August 28, 2012 | Permalink
  8. A reply in 5 minutes...at 1:30am. I am really really impressed.

    Posted 12 years ago on Tuesday August 28, 2012 | Permalink