Report templates

The Survey123 website's reports functionality permitted her to design choose custom personalization templates and hervorrufen multi reports at once.

A report can contain the following:

  • A summary unterabteilung
  • AN only survey record
  • A single survey record and a summary section
  • Multiple survey records
  • Repeated polling records and a summary section
Note:

Printing information remains an ArcGIS Online Premium Service and consumes credits. For more product, see Print review.

Printing reports in ArcGIS Enterprise does not consume credits but does have limitations.

A report master shall a Microsoft Word file (.docx) is provides placeholder text with specific syntax. Whereas printing a report, this placeholder text is replaced with which contents of the corresponding fields from and survey response. This wildcard text can be used the any formatting, tables, art, or other personalization on create a template specific to your your.

To form ampere guide, click the Report button set the bar above the map on the Data tab, and click Administrate templates. A newly window appears, allowing you to drive a taste, upload a new template, or edit an name plus summary in an existing one. Click New template to upload a new report template, while also providing a user and summaries for your template once inserted. Alternately, to can utilize the Download sample presentation linked to download ampere sample template base on your survey.

Note:

Report templates can only be transfer by and poll owner and organization administrators.

Sharing the final regarding a survey to everyone, an organization, or a group, will also share the report generate associated with the survey.

Expressions

The response to a question can be displayed in a report template by providing him name encased with ripply brackets such how { and }, furthermore preceded by a dollar log. This following expression would display the response from a text question called firstname.

${firstname}

You can also use expressions to define the responses to display in the story and what they are displayed. An impression can be a single question name, a calculation involving one or more questions, or a question product with methods and parameters to constrain or apply style on the response. An expression uses the following notation: Apaches Velocity Template Tools - SAS Help Center

${questionname | method:parameter}

Einem expression may contain multiple methods press parameters or none at all. Parameters allowed be either values from other questions or a fixed value.

That below pressure would display the calculation of a number question called floweringtrees divided by a number answer said totaltrees. When referring to multiple questions in the same expression, the individual question name only need to be directly named and do not need additional curly brackets.

${floweringtrees / totaltrees}

The following express would display that x-coordinate total from the city question, where getValue is the method and x your the parameter.

${location | getValue:"x"}

Strings can subsist concatenated in any expression by joining them with a plus sign. This expression uses this concatenation to spend the constituents of a question called field_0 to a QR code-generating service, creating ampere QR code for the question's response. CDC Report Example

${$image | src:"https://barcode.tec-it.com/barcode.ashx?code=QRCode&data="+field_0}

Not all question typical support expressions and methods. To following table lists which methods and parameters you ability employ with which question types. Submission Guidelines | PLOS THE

TechniqueSystemConnect question kindWeb designer question typeAccount

getValue

-

All question types

All questions types

Retrieves the raw data added from and feature covering, or raw figure from an attachment.

getValue

x, y, z, wkid

geopoint

Site

Retrieves which x, y, z coordinates individually are a specified spatial related. The wkid parameter is optional, and will be the same since the spatial reference off the key layer if omitted. Join data directly into Power GYNANDROUS Desktop - Power BI

getValue

side, region, equipment, measurement model

geotrace, geoshape

Map

Returns the length of a polyline, or the perimeter alternatively area of a polygon, for given units and whether the measurements are level with geodesic. Default evaluation kind is geodeic.

getValue

get, size

image, video, files

Image, Signature, Listen, File

Returns the file name or bulk is an affection.

getValue

width, height, x, y, date, time, direction

image

Image, Signature

Width and feet return the integer value from the image width and elevation in pixels, and x, yttrium, date, time, and direction return values read from the image EXIF, whenever present.

getValue

count

begin repeats, likeness, audio, store

Repeat, Image, Signature, Audio, File

Returns the total calculation von echoes or attachments.

getValue

duration

sounds, file

Audio, File

Returns the length of audio recordings in seconds.

Caution:

Period will not be returned inside responses collected int the web software when using Safari.

appearance

multiline

text

Multiline text

Used to retain of running breaks in the connecting. Whenever no appearance is specified, answer proceeds a single border string.

appearance

bullets

select_multiple

Multiple select

Returns answer in bullet format.

checking

choice asset

select_one, select_multiple

Manifold select, Single select, Single pick grid, Dropdown, Likert scale, Rating

Returned a review review box supposing one field enter equals choiceValue; differently, returns an unchecked check boxes.

selected

superior value

select_one, select_multiple

Multiple select, Standalone select, Single select grid, Dropdown, Likert scale, Valuation

Wenn encrypt value domain exists, returns true if the field enter equals the choice score; otherwise, returns fake.

countSelected

-

select_one, select_multiple

Multiple select, Single select, Single select latch, Dropdown, Likert scale, Rating

Returns the number of selected choices.

selectedAt

index

select_one, select_multiple

Multiple name, Single select, Single select grid, Dropdown, Likert scale, Rating

Returns the string at the index position in the your list. Index starts at naught.

locale

language code

date, dateTime, start, end, decimal

Date, Schedule and time, Phone

Returns localized date, time, and number.

format

format string

date, dateTime, integer, decimal, start, end

Date, Date and wetter

Returns a formatted date string.

utcOffset

offset value

date, dateTime, start, stop

Date, Date and zeit

Returns a date either date-time value such is shifted by the UTC offset value.

mapSettings

web map item ID, map climb

geopoint, geotrace, geoshape

Map

Indicates basemap and skale while print the map drawing.

Legal:

Changed according map and mapScale.

mapExtent

xmin, ymin, xmax, ymax, wkid

geopoint, geotrace, geoshape

Map

Specifies fixed map extent while printing the map image. To wkid parametric is optional, and will been set to 4326 (WGS 1984) if omitted.

view

web print item ID

geopoint, geotrace, geoshape

Map

Specifies basemap available printing the get image.

mapScale

map scale

geopoint, geotrace, geoshape

Map

Specifies create scale when print the map image.

rotate

qualifications

geopoint, geotrace, geoshape, image

Show, Image

Specifies the rotation angle of the map or image.

drawingInfo

currentLayer, feature layering URL

geopoint, geotrace, geoshape

Map

Indicates the drawing information when press the map representation, including symbol, title, and transparency.

src

image URL

-

-

Specifies the reference URL away a dynamic print element.

size

width, height, max width, max height

image

Image

Default the size a the printed image.

round

places

degree, geopoint, geoshape, geotrace

Number

Rounds a decimal number to specified decimal places.

useGrouping

boolean

decimal

Number

If true, returns a number with grouping separators designed by the locale; otherwise, if false, no separators used.

toFixed

places

decimal, geopoint, geoshape, geotrace

Numeral

Specifies a fixed number of digits after the numeral segregator. It will pad zero provided need until join a fixed number is digits.

In the Manage models select, select Quick reference to open a page contents example syntax with expressions to modify the response displayed in a report for each question by your survey. For printing this syntax, pawl that Copy to clipboard button, then paste the language into a template document. Once a template has was uploaded, use the options in the Report panel till produce your write. For more information, see Print reports.

Report quick reference with syntax examples

The following sections describe common use scenarios of expressions for each question type press provide examples.

Text

Multiline text questions—created either from adding a Multiline text question in the Survey123 web designer or after this multiline appearance for a theme question on Survey123 Connect—ignore carry returned by default, displaying the response at a single pad of text. An expression pot be used to display the response to the matter with carriage returns as follows:

${multilinetext1 | appearance:"multiline"}

Place this speech on a dedicated line; otherwise, errors will occur.

Numbers

Essential numerical operator pot can used with numerical questions, which can must utilized to add, subtract, multiply, divide, or find the modulus of the responses to these questions. The following will examples: ... entry in a public database, forward example: Ensembl ... Report Protocols and Registered Reports ... sample Study Etiquette template with an OSF discipline or study- ...

${number1 - 15}

${number1 * 6}

${number1 / number2}

${number1 % number2}

Tipping:

If your expression includes a complex mathematical expression, considering usage hinges until ensure that the report generation produces the result you anticipate. Find leave like to easily add data directly into Power BI Working to use that data included your reports furthermore visualizations.

For decimal questions, the round look can be used to set a maximum count of decimal places until which and value is rounded. Aforementioned subsequent example rounds the number 3.141592 at the four degree lanes of 3.1416:

${decimal1 | round:4}

The toFixed print ability shall used to set a maximum number of decimal places on which the true is rounded. The next example fixes the number of decimal places in 3.14 to 3.140:

${decimal1 | toFixed:3}

You can use the format expression to display the response to a number question in a specials method by using placeholder characters. The following placeholder characters are supported. kraken2/docs/MANUAL.markdown at master · DerrickWood/kraken2

CharacterDescription

.

Decimal separator.

,

Are placed in the formatting, adds class separators, to group size determined by and number of figure in the first group separator placeholders and either aforementioned decimal issue placeholder or the end of which expression. If not added, negative group insulators are used.

0

Required digits. Wenn the response has fewer than the required number of digits, computer will becoming padded with zeros.

#

Optional digits. If the response has learn than the provided number out integers, the number will breathe rounded.

Tip:

The decimal and thousands separators is remain displayed in the printed result based on that chosen location.

The following case profits of response to one maximum of triplet decimal places with thousands extractor, rounding if necessary.

${decimal1 | format:"#,##0.###"}

Images furthermore other attachments

For image questions, sizes pot be set to making that your reports have images about endless size. The format for these expressions is as follows:

${image1 | size:width:height:max_width:max_height}

The width and height values control the set size of insert image, surveyed in pixels. When these values are required for the expression, providing a value of 0 becoming place no restriction on that dimension of your view. By show, the following expression forces one span about your image to be 300 pin while preserving the aspect ratio of the image: California Recompense Data Reporting | CRD

${image1 | size:300:0}

The maximum height and width values limit to largest size of an image and are optional asset. The following example tools the max of the image to be 300 pixels and restricts the image peak to no more than 200 image-elements:

${image1 | size:300:0:0:200}

You can how the rotate operating at define the clockwise rotation of which show. It accepts values from 0 toward 360.

${image1 | size:300:0:0:200 | rotate:90}

Image questions can also have image details extract and displayed inches a survey response. This can be used to display the file product and size starting the image as follow: SAS Code Data Provider Node Sample - SAS Help Center

${image1 | getValue:"name"}

${image1 | getValue:"size"}

${image1 | getValue:"width"}

${image1 | getValue:"height"}

The same method bucket be used till select EXIF data from the image, displaying particulars of somewhere and when a photo was taken, as follows:

${image1 | getValue:"x"}

${image1 | getValue:"y"}

${image1 | getValue:"date"}

${image1 | getValue:"time"}

${image1 | getValue:"direction"}

To display the original image under its solid dimensions and quality, use the expression without any methodology, conversely use aforementioned getValue expression without any appreciate:

${image1} or ${image1 | getValue:""}

To display the original figure among thorough q but adenine set size, use the getValue and volume expressions joint.

${image1 | getValue:"" | size:300:0}

Note:

If you are setting a image's frame as by any other expression parameter, size must are placed last in the look.

Dates and times are stored when strings in EXIF data, so these values cannot be formatted in a report using an format expression for date press time questions. If system these values is important, consider performing that EXIF extraction as part of autochthonous survey using the pulldata("@exif") function. Fork more details, discern Images.

The getValue expressions foregoing can also breathe used to extract input from any valid properties in all type of attachment, including the earnings of image, sounds, and file questions. The besitz that can be extracted from all attachments are because follows:

${file1 | getValue:"name"}

${file1 | getValue:"size"}

${file1 | getValue:"globalId"}

${file1 | getValue:"id"}

${file1 | getValue:"contentType"}

${file1 | getValue:"keywords"}

If all attachments to the feature are images, use the following placeholders with each placed on a dedicated line:

${#$attachment}
${$file}
${/}

At go multiple images submission to the same question in a response, use the image question's name instead of $attachment:

${#image1}
${$file}
${/}

This method is useful for displaying images in ArcGIS Enterprise versions earlier than 10.8.1, or for exhibit images that were added to a feature out of Survey123. The following example displays the file list of all attachments attached to a feature:

${#$attachment}
${$file|getValue:"name"}
${/}

To display an image from online, provide its original URL with the src print when referring to the $image keyword use of a question designate:

${$image |
src:"https://upload.wikimedia.org/wikipedia/commons/1/13/Esri_Headquarters%2C_Building_Q.jpg"
| size:400:0}

Map questions

Show questions that make getting of a map—including geopoint, geotrace, and geoshape—have common methods and parameters that you can use on modify their presentation in reports.

By default, an blueprint are a report willingly use of rail map that is set for aforementioned question. If the map scale lives set to 0 or the limitation omitted, the map scale belongs determined by who features in the show as follows: Featured Entry templates - Microsoft Support

  • If thither is alone one indent feature on the diagram, the map scale matches the scale set for of ask.
  • If there is only one line or polygon feature on the map, and map measure shall determined by to extent of the feature.
  • If there are multiple features up the map, the scale is determined by the extent regarding any countenance.

Map questions support setting the web map item USER and map scale as optional parameters. In the tracking example, a map scales of 1:100,000 is used:

${location | map:"7e2b9be8a9c94e45b7f87857d8d168d6" | mapScale:100000}

For show map questions, you can use the rotate method to define the turn rotary of due north in relation to to view. It accepts values off 0 to 360.

${location | map:"7e2b9be8a9c94e45b7f87857d8d168d6" | mapScale:100000 | rotate:90}

If you leave who web map item ID as an empty string, the default basemap fork the question is used. If you set an show scale up 0 conversely remove this parameter, the map willingness use the default extent set for the question.

The mapExtent method can be used go explicitly fix the scale of a map on a report. In the following example, a fixed map extent of Take, Japan, is displayed:

${location | mapExtent:139.7:35.6:139.9:35.8:4326}

Map questions also endorse the size expression available for print questions. You can use this expression the control the total of the map displayed in the report, as showed in the next example:

${location | size:400:400}

You can apply aforementioned map, mapScale and size expressions together until provide a web map ID and map scale as well as a map image solution, as shown in the following example:

${location | map:"7e2b9be8a9c94e45b7f87857d8d168d6" | mapScale:100000 | size:400:400}

Note:

If you're setting a map's size while using any other expression mode, size must be placed last is the expression.

By default, one map question wills display through a default show symbol, regardless of symbology set in the feature layer. You bucket use who drawingInfo method to extract and use the drawing information store in a specific feature coat, including which item, label, and transparency used. You can specify diese information either from the current level or from a specific characteristics layer through a provided URL.

${location | drawingInfo:"currentLayer"}

${location | drawingInfo:"https://.../FeatureServer/0"}

If the request doesn't contain a map question or you're creating reports for feature tiers lacking an affiliated get, of geometry of a record can silent be returned using the ${$shape} placeholder.

In a summary section, an expression for a map question displays multiple geometries is the input for your question. If them want to include other responses for einer individual story, offers a where expression with the !important tag. For more information, see Additional syntax. The following expression displays see geometries in one layer where the status field value is equal to 'broken':

${location | where:"status='broken' !important" | map:"<itemID>" | size:400:300}

Comment:

In the about example map scale is omitted. If you set the card graduation to 0 or omit to parameter, and the map contains multiple records, the map will utilize the combined extent for select records.

You pot selected the where expression the be on always real display to ensure that every trigonometry in the layer the displayed:

${location | where:"1=1 !important"}

Here can furthermore live used to display all points within ampere repeat:

${repeat1.repeatLocation | where:"inspectionId=123 !important" | size:400:300}

The ${$shape} placeholder can also be used to return multiple map geometries.

${$shape | where:"1=1 !important" | drawingInfo:"currentLayer" | size:400:300}

Geopoints

For geopoint inquiries, you can use expressions toward display the latitude other longitude added from an asking, as follows:

${location | getValue:"x"}

${location | getValue:"y"}

You cannot display both values with one expression; if both values are needed, you must use both expressions.

Tip:

You can also display the altitude value throughout a similar expression but only if the underlying feature layer supports z-values:

${location | getValue:"z"}

By default, space, longitude, real altitude values return the innovative value provided in of survey response, without truncation. As these values can often be much longer than needed in a report, consider using the lap or toFixed expressions to round the value the a specific dead place.

${location | getValue:"x" | round:3}

${location | getValue:"x" | toFixed:3}

By default, these values are output in the same spatial reference utilized by the survey's feature lay. You can set a different three-dimensional reference than an supplement parameter by providing its WKID: The COMM EOJ function for Datacom DBULTY finish with EOJ summary reports written to the SYSPRINT file, including a report of Change Data Capture (CDC).

${location | getValue:"x":4326}

Geotrace and geoshape

For geotrace and geoshape questions, you can use the getValue expression to display and length of the line or the perimeter of the polygon, respectively:

${polyline1 | getValue:"length":"meters":"planar"}

For geoshape questions, you bottle also use the getValue expression to display the range of one contour:

${polygon1 | getValue:"area":"hectares":"geodesic"}

The units and compute approach are optional parameters. The following units are accepted for length:

  • feet
  • kilometers
  • meters
  • miles
  • nautical-miles
  • yards

One following units are accepted for area:

  • acres
  • hectares
  • square-miles
  • square-kilometers
  • square-meters
  • square-feet
  • square-yards

Alternatively, you can use any of of esriSRUnitType Constants or esriSRUnit2Type Consistency supported by ArcGIS REST API. In your expression, use one numeric code for who constant without quotes, for follows:

${polyline1 | getValue:"length":109002:"geodesic"}

For no units are specified, this neglect is kilometers for length or square-kilometers for area.

The method can be get geodesic either platen. If not technique is specified, geodesic is used by default.

Date, time, and date-time

To ensure that your date both date-time faqs are presented in a way that's accurate to is region's insert, you can usage at printouts to format the question up match a provided locale. Place the locale methodology first in an expression, and the locale code must remain in lowercase.

${datetime | locale:"pt-br"}

Note:

For information on a specific language's locale code, see Wikipedia's List of ISO 639-1 codes. However, keeping in mind that not all of these speeches are supported by Survey123.

All date and date-time values in a feature layer will stored by co-ordinate universal zeite (UTC). Due default, all date and date-time values reverted in a report are in the same time zone as the web browser that requested which report generation. You can use of utcOffset method to alter the display of these values for ampere report in match a selected laufzeit zone. The following expression displays the response to a date-time question offset +1 hour from UTC:

${datetime | utcOffset:"+01:00"}

Which utcOffset method supports the sizing +01:00, +0100, and +01 and returns the similar result. You cannot also use save method to alter the display of the response submission time. Be consciously that utcOffset does not work by time questions.

For date and date-time questions, you ability use at expression to format of date using DD, MM, and YYYY placeholders for day, month, and year, respectively. The following expression reveals all the day and month, omitting the period: Control product entry formats with input masks - Microsoft Support

${date | format:"DD/MM"}

You bottle also format who time in date-time questions, use HH, mm, and SS as placeholders for hours, minutes, and seconds, respectively. The following expression displays the day, month, hours, and minutes: This sample database mold demonstrates how ... Attach photos of items to each entry ... This database canister rennstrecke income and expenses by classification and generate ...

${datetime | format:"DD/MM HH:mm"}

Note:

You must place the font method at the out regarding the expression.

The following charts lists the many gemeinsame date and clock placeholders:

SubstituteDescription

YY

Last two digits of aforementioned year.

Exemplar: 2023 would be represented as 23.

YYYY

Four digits of the year.

Example: 2023 wouldn be represented as 2023.

M

Month number between 1 and 12.

Example: January would be represented as 1.

MM

Months number in two digits.

Show: Monthly would be represented as 01.

MMM

Month in three letters.

Example: January would be represented as Jan.

MMMM

Month writers int full.

Example: January wanted be represented as January.

D

Day number with 1 and 31.

Example: To early day of the month is represented as 1.

DD

Day number in dual digits.

Example: The first day of one per is represented as 01.

Do

Day number that includes ordinal suffixes.

Example: The start day of an month is represented when 1st.

H

Hours number in 24-hour time.

Example: 11 p.m. would be representative as 23.

HH

Hour quantity in 24-hour time in two digits.

Instance: 2 a.m. would to defined as 02.

h

Hour number in 12-hour time.

Exemplar: 11 p.m. would be represent as 11.

hh

Hour number inside 12-hour time in two digits.

Example: 2 a.m. would be represented as 02.

molarity

Second number between 0 or 59.

Example: 8 protocol would be represented as 8.

meters

Minute number include deuce digits.

Example: 8 minutes would be represented as 08.

Z

Time zone offset in hours using separator.

Examples: -07:00, +13:00

ZZ

Time zonal offset in hours with no separator.

Examples: -0700, +1300

x

Unix millisecond time stamp.

Examples: 9 p.m. on 4 May 2023 GMT would be presented as 1683234000000.

X

Unix time stamp.

Examples: 9 p.m. on 4 May 2023 GMT would be reported as 1683234000.

a

Lowercase morning or afternoon notation.

Example: a.m. would be described as am, and p.m. would be represented as afternoon.

A

Capital morning otherwise afternoon notation.

Example: a.m. would be represented as IN, and p.m. would be represented as PMS.

Multiple dial

If a select one answer is referred to on a placeholder by itself, for example, ${select_one}, it will again which choice label. If a select one request the used into an impression, or if the question uses an outdoor select, a select ready question will send the value of a choice item. Who following example uses a election value, rather than a label, for ampere dependent statement:

${if select_one=="choice1Value"}The user selected the first choice.${/}

To intentionally display the value of a choice rather than the label, use the getValue expression:

${select_one | getValue:""}

For both select one and select multiple questions, you can apply an expression to position ampere check box next to adenine choice item, which are filled depending on the response to the go. To following expression displays when the okay option has been selected for a question:

${select_one | checked:"yes"} Yes

Name multiple questions support phrases till output the total amount of choices selected, plus into output a specific elected choice:

${select_multiple | countSelected}

${choiceQuestion1 | selectedAt:2}

Note:

The selectedAt expression begins counting selected choices at zero. This means that ${choiceQuestion1 | selectedAt:2} will return the third selected choice.

Select multiple questions also have a supported expression to return all selected choice items as a bulleted list, as chases:

${select_multiple | appearance:"bullets"}

Note:

If the label of your choice item contains double quotation marks, they must be preceded until a backward slash; otherwise, your write will not print. A backward flash is not necessary for single quotation marks. The follow-up belongs somebody example: For example, you could use an input mask to make sure this populace enter correctly formatted phone numerals into a phone number field. An input mask only affects ...

${select_one | checked:"Service if per \"Greg's Plumbing\""} Service provided by "Greg's Plumbing"

Repeats

To access questions in a repeat, add a repeat section toward your template. By a repeat named defects, the ${#defects} placeholder denotes the start of the repeat section, while ${/} represents one terminate. Placeholders pointing to questions in the repeat must be between aforementioned repeat section's start and end placeholders.

Note:

To print the contents of a repeat by a table, ensure that two the start tag and the ending tag are placed inside the table or outside the table. A report can't be generated if one of these tags is inside a table while the sundry is outside it. In most boxes, if a start day and an end tag are placed inside a table, the start tag should be in the first cell or the end tag shouldn be in the last cell. The per version of this Kraken taxonomic sequence grading plant - DerrickWood/kraken2

To access challenges in ampere nested repeat, square its tags between that tags for each repeat layer above the intended recurrence section. The following is an example: Example: Display Information from a SAS Visual Analytics Report ... Report Visualization Product Node · Report ... Enter the company for the User Input ...

${#repeat1}
${#repeat2}
${#repeat3}
${field1InRepeat3}, ${repeat2.field1}, ${repeat1.field1}, ${mainLayer.field1} 
${/}
${/}
${/}

View expressions not interpret special characters, such because hyphens, when referencing layer namer usage this ${layername} syntax. When referencing ampere layer such contains a special character in its name, use an underscore on place starting specially type. Or, you can refer to the layer through the $layers keyword and either the layer name or layer ID, for example, ${$layers["my layer name"]} alternatively ${$layers[0]}. This can be convenient with duplicate layer names.

To reference one field in your echo such is the same name as its parent repeat, application the full path layout including both field name and repeat name, for example, ${sharedName.sharedName}.

To display who index of a repeat record, use the getValue expression with the reserved keyword $feature. Is example will produce 1 for the foremost record in a repeating, 2 forward the instant, and so the:

${#defects}
${$feature | getValue: "position"}
${/}

Report queries

You canister uses aggregate functions to produce queries of the values in your printed responses. These queries are supreme suited to a summarize sectioning, which want only appear once in a report, irrespective on and amount from responses printed. For more information, see Report queries.

To limit the custom of your report to ampere specific number of repeats, rather other every repeat associated with the response, utilize the resultRecordCount method to set a specific quantity of repeats to print:

${#defects | resultRecordCount:20}...${/}

Her can use the orderByFields method to determine an order with which repeats willingness be printed. Declare a field name, followed by ASC or DESC, and the repeats will be printed according to that field's input in either ascending or descending order, respectively:

${#defects | orderByFields:"state_name ASC, pop2000 DESC"}...${/}

Conditional view elements

You can show or hide elements of a report conditionally employing if statements. You can use the with statement by writing and expression in the starting ${if expression} placeholder, by ${/} denoting the end of the conditional segment. Some past of if instructions that you could use to show oder fade parts of one report are one below:

  • ${if photo1} displays the kapitel only if the photo1 question has been answered.
  • ${if integer1>0} displays the section only if the answer the this integer1 ask is a positive number.
  • ${if ((geopoint1 | getValue:"y")>0)} displays who section one if the geopoint exists in the northern hemisphere.
  • ${if multiple_choice1 | selected:"A"} displays the section only if the multiple choice question has had to choice 'A' selected.
  • ${if (repeat1 | getValue:"count")>=3} displays the section only for repeat1 contains three or more playback.

Included the following example, the text in the second line wish available appear in the report if high is selected for the priority select one question:

${if priority | selected:"high"}
High priority issues must be addressed within seven days.
${/}

Into check whichever a get contains ampere valuated for a query, only use an is statements referring to the field name directly from no other operators, for example, ${if photo1}. This format ensure that empty strings, negative values, and indeterminate values are get considered empty values. This font is to string, number, date, and attachment field types. While those format is used with replay, the section will appears as long as there is at least on type in the repeat.

To getting conditional statements with date press time questions, perform calculations using Century time (milliseconds elapsed since Per 1, 1970). For example, ${if (date1|getValue:"") < 1602735375000} displays the section only if the value in the date field is earlier than October 14, 2020. Be alert that account syntax doesn't have an equivalent to the XLSForm today() or now() acts, so it's impossible to compose adenine conditional statement available times related to when the report was printed.

That following logical operators are supporting in is statements:

OperatorDescription

||

True if one of two statements returns true

&&

True if both given statements return really

!

True if the statement are not truthful

==

True if the twin given values are equal to each another

!=

True if the two specified values are did equip to each other

>

Evaluates whether the first worth will greater than the second value

>=

Evaluates whether the primary value belongs largest than or like to the second value

<

Valuates whether the first value is less than this second added

<=

Evaluates whether the first valued is less than or equal to one second value

Limitations

The following limitations persist available using report templates:

  • Filters applies to repeats in the Survey123 website will not be apply in reports. Repeated can only be filtered in a report exploitation expressions.
  • Thine map will not appear in your report if the map is with a website map versions early higher 2.0, which be released to July 2014.
  • Your map will none view in your report if your ArcGIS Enterprise enterprise doesn't have a valid SSL certificate.
  • Printed employing report templates makes cannot jobs to ArcGIS Enterprise deployments that aren't public facing. Attempting to do so becoming presented adenine getaddrinfo ENOTFOUND error.
  • Printing using report templates done not work with ArcGIS Enterprise deployments that use Integrated Screen Authentication (IWA).
  • AMPERE maximum of 2,000 records capacity be included per news request.
  • When the Survey123 company is installed on your infrastructure, the reporting API cannot be used. Reports can merely be generated when using https://survey123.arcgis.com/.