Survey123 Return results with CONTAINS function?

2902
10
Jump to solution
06-03-2020 02:57 PM
by Anonymous User
Not applicable

Hi all,

I have a survey and I want to find a value in a string that is after the "="  sign. Where if the value they select contains FAC, FACW or OBL after the equal sign - then answer YES to a dominant species of vegetation.  If it is a no, then No is automatically selected in dominant species.

Just not sure how to format this formula in the survey:

if(selected(${VegetationPlantNames} contains 'FAC", or 'FACW' or 'OBL') after "=" THEN TreeStratumDominantSpeciesYN = 'YES'

Please help.

See attached survey.

Thanks,

Paul

0 Kudos
10 Replies
by Anonymous User
Not applicable

Yes, I removed all the HTML code in the names & working on the comma's. 

0 Kudos