Relevant if 'X' not selected syntax

660
3
Jump to solution
06-08-2018 05:12 AM
Highlighted
New Contributor III

I'm currently pulling data through from a csv attached to my survey based on a Location ID field. However if that data changes on site, I have added in a select multiple so the user can chose to change one of those details.

My issue is that I want the data draw through to be hidden should the user select the relevant box, such as in the images below where Location Type is ticked (I would want Location Type data draw through to disappear).

I have tried using the selected operator in various forms, but that only presents the field in case of a true return. I'm wondering whether it can test for an "unselected" feature, such as notselected(${LocationDetails}, 'Location_Type') so that the field only appears when Location Type is selected. I would link it to a master question (such as "Have the location details changed?" but that knocks out other functionality.

Any suggestions? Thank you.

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Esteemed Contributor

Hi Thomas,

One way to do this would be to compare the result to false():

selected(${LocationDetails}, 'Location_Type') = false()

View solution in original post

3 Replies
Highlighted
Esri Esteemed Contributor

Hi Thomas,

One way to do this would be to compare the result to false():

selected(${LocationDetails}, 'Location_Type') = false()

View solution in original post

Highlighted
New Contributor III

Hi James,

Thanks for the quick response! I didn't know you could compare to false, thanks for showing me how. All working as desired now.

Thanks,

Thomas

Reply
0 Kudos
Highlighted
New Contributor

Hi James, this is the closest thread I can find to the question I have.  I want to make a group of questions in Connect only relevant if a response to a previous question is not selected.  Your solution with ()false sounded good but I cannot get it to work.  This is the direction I was going to try and have a group of questions be relevant if you do not select Nail Salons:

notselected(${WORKPLACE}, 'Nail Salons | Salones De U??as')

Any help would be great! Thanks.

Reply
0 Kudos