Select to view content in your preferred language

Survey123 Report template header

129
3
Friday
DionysiosKerasidis1
Emerging Contributor

Hi Team 

 

Not sure if anyone has encounter this before.

I have created a report template for survey123 which works perfectly fine. The template includes  conditional statements in order as you see below. Depending on survey type the template will print only the relevant section which is great and fine.

The problems comes when i add header. Only if the first condition is met header is printed. In the rest two cases no header is printed.

Any idea why this is happening?

${if survey_type == “onroad” || survey_type == “offroad” || survey_type == "utilities"}

${if survey_type == “compound” || survey_type == “offroad” || survey_type == "hdd"}

${if survey_type == “hardstand” || survey_type == “passingbay” || survey_type == "jointbay" || survey_type == “structure” || survey_type == ”culvert”}

 

DionysiosKerasidis1_0-1736506168623.png

 

0 Kudos
3 Replies
abureaux
MVP Frequent Contributor

Can you link the full IF() statement (EDIT: Linking the full word doc may be easier, tbh. If possible)? Looks like a few components are missing there.

The three separate (I assume they are separate?) IF() statements you have above look to be formatted correctly from a syntax point of view. Again, I can only make assumptions here. For instance, "onroad" is assumed to exist within your Feature Layer as a valid option.

0 Kudos
DionysiosKerasidis1
Emerging Contributor

i have now shared the word file, have turned the header to simple image for now.

0 Kudos
abureaux
MVP Frequent Contributor

Sorry for the delay. I've been out of the office.

This is the reason headers aren't printing for the second two conditional statements (note the "page breaks"):

abureaux_0-1736961434575.png

Try something like this instead (e.g., no page breaks) :

abureaux_2-1736961456797.png

 

0 Kudos