Hi,
I have been struggling with If statements in feature reports.
Is it possible to make a statement based on whether a text question is answered? I tried among other thing this expression, but it doesn't work:
${if (OPLP1_oms string-length>0)}
${/}
In which 'OPLP1_oms' is the text question.
Please advise.
if(string-length(${OPLP1_oms}) >0, if true goes here, if false goes here)
In general it is
if(statement, true, false)
${feild name}
functions are function(field)
Hope that helps. Looking at the sample in the help will be a good place to get started. Big note is that feature reports may act a bit different.
Hi Doug,
Thanks for your comment.
I know that's usually the setup, but for if statements in Report templates it seems to work slightly different: Feature report templates—ArcGIS Survey123 | Documentation.
Under the header 'conditional elements' they use the following example expressions:
You then close the expression with ${/}
Doug,
Is it possible to do an if statement like the one you listed above (string-length(${fieldname})>0), if true, check a box, and if false, do not check the box?
Thanks