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 with optional (empty) fields

  1. In the form http://katonahchamber.org/membership-form/ where businesses submit their info, some fields are optional. I use content template to display this info here http://katonahchamber.org/business/noka-noka-joes/. How to hide "hours" or "fax" sections if these fields weren't submitted. Here is the example of content template

    {Logo Image:3:large:center}
    
    {About Text:2}
    {Photograph:23:medium:center}
    <div id="bus-company" class="bus-fields"><span>Company</span> {Company:17}</div>
    <div id="bus-propr" class="bus-fields"><span>Proprietors</span>{Proprietors:18}</div>
    <div class="bus-fields"><span>Address</span>{Address:19}</div>
    <div class="bus-fields"><span>Phone</span>{Phone:20}</div>
    <div class="bus-fields"><span>Phone</span>{Alt Phone:21}</div>
    <div class="bus-fields"><span>Fax</span>{Fax:22}</div>
    <div class="bus-fields"><span>Email</span><a href="mailto:{Email:13}">{Email:13}</a></div>
    <div class="bus-fields"><span>Website</span><a href="{Web Site:9}">{Web Site:9}</a></div>
    <div class="bus-fields"><span>Hours</span><div id="hours">{Hours of Operation, if applicable:14}</div></div>
    <div class="bus-fields social-form"><a href="{Facebook:11}">Find us on Facebook</a></div>
    <div class="bus-fields social-form"><a href="{Twitter:12}">Follow us on Twitter</a></div>
    {Special offer image:15:medium:center}
    Posted 13 years ago on Thursday February 17, 2011 | Permalink
  2. Currently conditional content template functionality is not possible. It's a feature we plan on adding in a future release as the content template functionality continues to evolve. Right now content template functionality is best used with fields that are required if it poses a markup issue.

    Posted 13 years ago on Thursday February 17, 2011 | Permalink
  3. Thanks

    Posted 13 years ago on Thursday February 17, 2011 | Permalink
  4. Would LOVE this as a new feature! +1

    Posted 13 years ago on Tuesday August 2, 2011 | Permalink