Select to view content in your preferred language

Can you use substr function in Survey123 ArcGIS report template?

659
1
03-14-2024 12:27 PM
Bio_GIS
Emerging Contributor

Hello,

I am having issues writing the code for  a survey123 report template display certain characters from a repeating select_one field. I would like my template to display the text string after the first 8 characters. I currently have a table that displays the label in one column and the code in a second column. Both of these domain lists have 8 characters that I do not need displayed in the report. Below is the code that I use for getting the values to populate. I have haven't had any luck with trying to code a substr function based off of the Formulas documentation. Would someone be able to assist me with this?

wildlife observations:

${#widlife_observation_begin}${wildlife_observed} 

${#widlife_observation_begin}${wildlife_observed | getValue:""}

0 Kudos
1 Reply
DougBrowning
MVP Esteemed Contributor

Not sure but you could do it in the form in a hidden field then you can use it in other places also.

 

substr(question, start, end)

Returns the substring beginning at the specified start and extends to the character at index end -1, where start and end begin at 0.

0 Kudos