conditional output of email address

  • Hi, wondering how to make the following output conditional i.e. would like a checkbox the editors can tick to include/exclude personal email address output

    I tried a composite tag but that did not work and cannot work out how to inclue a simple yes/no option in the template - any help gratefully received


    template reuses staff first name last name to output a personal email address, so I need something to make that output optional


    <a href="mailto:<perch:content id="staff_name_first" type="text" label="First name" html="false" />.<perch:content id="staff_name_last" type="text" label="Last name" html="false" />@nvc.cc"><perch:content id="staff_name_first" type="text" label="First name" html="false" />.<perch:content id="staff_name_last" type="text" label="Last name" html="false" />@nvc.cc</a>