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.

Displaying titles in custom fields

  1. Chef2
    Member

    Hello, is it possible to display the custom field titles in the post template when a new post is created?
    I know I could do that with CSS, just inserting every element into a div, the problem is that with this method they would display regardless of some fields not containing data at all.
    Can this be done?

    Cheers.

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  2. Chef2
    Member

    anyone?

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  3. Conditional content templates are not a feature of Gravity Forms. However, you can modify the content template and test for the existence of a value, then output the heading only if the field contains a value. You can use the gform_post_submission hook to change the post body after the form is submitted.

    The example there shows modifying the post. You would do something similar, but you would use some statements to see if the field has a value, and if it does, add the heading and the field to the post body. Otherwise, don't add the heading. You'll be creating your own post body here rather than using the content template,

    Posted 13 years ago on Saturday September 24, 2011 | Permalink
  4. Chef2
    Member

    This is way beyond my capabilities

    Posted 13 years ago on Sunday September 25, 2011 | Permalink
  5. There are resources available to help you with customizations if you need it. You can find them here: http://www.gravityhelp.com/forums/forum/job-board

    The first post "How to Use the Job Board".

    Here's a topic where it was previously discussed.

    The conditional content template has been talked about for a future release. But it won't be available for your immediate project needs.

    Posted 13 years ago on Sunday September 25, 2011 | Permalink