Select to view content in your preferred language

Can I use the relevant column with a wildcard character?

1185
2
03-31-2017 12:36 AM
tomhughson
Occasional Contributor

In a survey I am developing I have my name column arranged so that entries include a term which I would like to use in the relevant column. e.g below I want to show the next question only if the answer to the previous question contained the word 'Direction'

or something along the lines of:- ${previous_question} where the previous question is like 'Direction'

If it is possible what would be the correct syntax? None of my fiddling with wildcard characters seems to do the job. Any assistance would be greatly appreciated, Tom.

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Tom

To accomplish this, you would use a regular expression to create the match pattern - Relevant expressions—Survey123 for ArcGIS | ArcGIS  .  See Regular Expressions - JavaScript | MDN and https://regex101.com . I think for your requirement it would be as simple as 

regex(${previous_question}, "Direction")

tomhughson
Occasional Contributor

Thanks James, yes that worked well. Regards, Tom

0 Kudos