Select to view content in your preferred language

Hide option for Completed only if the Status =2

309
1
07-06-2023 03:07 PM
AndrewSmith21
Emerging Contributor

I need help writing the line of code where by the option to select Completed is only available if the "In Progess Date" has a value.

 

Completed_Option.PNG

 

In_Progress_Date.PNG

0 Kudos
1 Reply
ZacharySutherby
Esri Regular Contributor

Hello @AndrewSmith21

It is possible to remove choices from a choice list using a choice_filter. Please see the Cascading and external selects documentation for more information as well as the Choice Filters and Cascading Selects sample in Survey123 Connect. 

I've attached a sample that will only display the "Completed (stop)" choice if there is a value in the inprogressdate question. 

Thank you,
Zach
0 Kudos