Survey123 Form on Android doesn't open "relavant" Groups

193
5
12-06-2018 03:37 PM
Highlighted
New Contributor III

I've created a form that works fine on iOS devices (iPhone Plus & iPad) but the relevant "begin group" and "end group" sections are not opening in Android when I select the appropriate answer for the 'trigger' )i.e. 'Yes') see Android_Habitat_Group_Question.

Another individual "relevant" is always open regardless of answer and condition. see Android_Species_Genus_Question

Tags (1)
Reply
0 Kudos
5 Replies
Highlighted
Esri Regular Contributor

Hi Dudley, thanks for the screenshots. One thing to try is modifying the relevant expression to use selected to specify the answer, for example:

selected(${GotHabitat},'YES')

Please see https://community.esri.com/groups/survey123/blog/2016/05/28/the-art-of-hiding for some useful info on the relevant column. If possible, could you please provide the XLSForm for your survey so I can test the iOS versus Android behaviour? Thanks, Jim

Reply
0 Kudos
Highlighted
New Contributor III

Thanks; I didn’t realize that selected() was used in singles

An upgrade of my Android app has fixed most of the issues I think, but will convert those next publication cycle

Attached is XLXSForm (I hope this is what you want)

Dudley Hartel

Science Delivery/Technology Coordinator

Forest Service

USDA Forest Service

p: 706-410-5568

c: 706-410-5568

dudley.r.hartel@usda.gov<mailto:dudley.r.hartel@usda.gov>

747 Maxine Dr

Baton Rouge, LA 70808

www.fs.fed.us<http://www.fs.fed.us>

<http://usda.gov/>[Forest Service Twitter]<https://twitter.com/forestservice>[USDA Facebook]<https://www.facebook.com/pages/US-Forest-Service/1431984283714112>

Caring for the land and serving people

Reply
0 Kudos
Highlighted
New Contributor III

Sorry for the 2nd reply, but in applying the selected() function, I remembered I also used the following:

$ != 'UNKN' Is there a syntax for selected() that returns the negative case without listing all of the positive? I Googled it, but didn’t get any returns with examples I didn’t try: !selected($,'UNKN') ???

Dudley Hartel

Science Delivery/Technology Coordinator

Forest Service

USDA Forest Service

p: 706-410-5568

c: 706-410-5568

dudley.r.hartel@usda.gov<mailto:dudley.r.hartel@usda.gov>

747 Maxine Dr

Baton Rouge, LA 70808

www.fs.fed.us<http://www.fs.fed.us>

<http://usda.gov/>[Forest Service Twitter]<https://twitter.com/forestservice>[USDA Facebook]<https://www.facebook.com/pages/US-Forest-Service/1431984283714112>

Caring for the land and serving people

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Hi Dudley, thanks for the XLSForm. I am unable to reproduce the issue. The relevant questions work as expected when I open your survey on Android (see attached).

Which version of the Survey123 app are you using? And on which Android device (make, model and Android version)?

Just to clarify, for select_one questions ${GotHabitat}='YES' is correct, although selected() will also work. I thought it might be worth trying the selected() option but my apologies, it was a bit of a red herring! So ${DateSeasonChoice} != 'UNKN' is correct for specifying 'not equal to' on a select_one.

Jim

Reply
0 Kudos
Highlighted
New Contributor III

Jim

I suspect that an Android update of Survey123 probably fixed this problem; I’m on 3.1.159 at present

On iOS 3.1.158

Form is working fine for me now

Dudley Hartel

Science Delivery/Technology Coordinator

Forest Service

USDA Forest Service

p: 706-410-5568

c: 706-410-5568

dudley.r.hartel@usda.gov<mailto:dudley.r.hartel@usda.gov>

747 Maxine Dr

Baton Rouge, LA 70808

www.fs.fed.us<http://www.fs.fed.us>

<http://usda.gov/>[Forest Service Twitter]<https://twitter.com/forestservice>[USDA Facebook]<https://www.facebook.com/pages/US-Forest-Service/1431984283714112>

Caring for the land and serving people

Reply
0 Kudos