Select to view content in your preferred language

How is a Selected List Item Used to Select the Next List to Display?

605
2
Jump to solution
08-28-2022 04:11 PM
vocono1953
Emerging Contributor

Hi. I’m working on a Surver123 Connect project. My experience developing apps is as a programmer and have no experience working with ESRI products.

What is needed is to use the selected ‘ListTaskType’ to display ListTask. Two lines from the survey sheet:

select_one list_task_type

ListTaskType

Types of Task

select_multiple list_task

ListTask

Tasks

 

I’m not certain how (in)correct the above is, but the followings choice sheet probably incorrect:

list_task_type

0

Hort Area

list_task_type

1

Greenhouse

list_task_type

2

Lawn/Turf

list_task_type

3

Other Tasks

 

if (${ListTaskType}=0) then

 

 

0

0

Clean

1

1

Prune

2

2

Plant

3

3

Water

 

if (${ListTaskType}=2) then

  
 

0

Aerate

 

1

Amend soil

 

2

Manage Pests

 

3

Mow

 

The IF statement is in the wrong column—don’t know where it goes. Not certain if the operator $ is correctly used. Tried to Google smaller questions with no good result.  Thank you for any help you offer.

--Bob

0 Kudos
1 Solution

Accepted Solutions
LaurenceTait
Frequent Contributor

What you need is cascading select: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformcascadingselects.htm. You need to add another column to your choices tab that tells the app which task is relevant to which task _type, and then add an expression to the [choice_filter] column of the survey tab to tell the app what to filter on.

LaurenceTait_0-1661730996761.png

LaurenceTait_1-1661731012447.png

Example attached below

View solution in original post

0 Kudos
2 Replies
LaurenceTait
Frequent Contributor

What you need is cascading select: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformcascadingselects.htm. You need to add another column to your choices tab that tells the app which task is relevant to which task _type, and then add an expression to the [choice_filter] column of the survey tab to tell the app what to filter on.

LaurenceTait_0-1661730996761.png

LaurenceTait_1-1661731012447.png

Example attached below

0 Kudos
vocono1953
Emerging Contributor

Thank you, Laurence. That is what I needed 🙂

0 Kudos