infoTemplate content JSON format using a function

3630
0
04-29-2015 10:16 AM
TracySchloss
Frequent Contributor

I am working through Tom Wayson's example of a citizen request map.  In it there is an infoTemplate defined in JSON format:

infoTemplate: {

      title: '<b>Request ${objectid}</b>',

      content: '<span class="infoTemplateContentRowLabel">Date: </span>' +

          '<span class="infoTemplateContentRowItem">${requestdate:DateFormat}</span><br><span class="infoTemplateContentRowLabel">Phone: </span>' +

          '<span class="infoTemplateContentRowItem">${phone:formatPhoneNumber}</span><br><span class="infoTemplateContentRowLabel">Name: </span>' +

          '<span class="infoTemplateContentRowItem">${name}</span><br><span class="infoTemplateContentRowLabel">Severity: </span>' +

          '<span class="infoTemplateContentRowItem">${severity:severityDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Type: </span>' +

          '<span class="infoTemplateContentRowItem">${requesttype:requestTypeDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Comments: </span>' +

          '<span class="infoTemplateContentRowItem">${comment}</span>'

    }

I have an existing function I need for my content.  Is there a JSON style format for infoTemplate that will still let me call my function? 

0 Kudos
0 Replies