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”}
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.
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"):
Try something like this instead (e.g., no page breaks) :