Select to view content in your preferred language

Condition "note" type question doesn't appear in Survey123 using web

1085
2
03-13-2019 02:53 PM
SFM_JonathanGoergen
Emerging Contributor

I am making a Survey123 form and have some conditional "note" type fields that pop up in a few places.  They work fine in the form preview, but when filling in the form online it does not work.  See attached:

Is this a known deficiency in Survey123? Is there a work around?  I know I have the right syntax entered in the "relevant" column as a new text box at the end of the form is created when "Other" is selected on the web version.  Thanks for any help.  #survey123 #survey123.com

Tags (1)
2 Replies
BrettStokes
Esri Contributor

Hi Jonathan,

I have not been able to replicate this issue by creating a survey in Connect then filling in the form online. Is this how you’ve created your survey or have you designed and published it directly online? Currently, when designing a survey online, rules (to set when something is relevant) are only supported by Single Choice, Dropdown, Likert and Rating questions – not Multiple Choice.

It appears from your screenshot that you’ve added ‘Other’ manually into your multi-choice list. Note that this can also be achieved using the question type: select_multiple list_name or other in Survey123 Connect.

Perhaps you can share your xlsx form or at least the expression you’re using in the 'relevant' column. Given this is a multiple choice question, I assume you need to have the note visible if ‘other’ is selected, regardless of what other options are chosen? In this case you would use an expression like contains(${power_tools}, 'other') in the 'relevant' column.

Hope this helps,

 

Brett

0 Kudos
SFM_JonathanGoergen
Emerging Contributor

I reviewed your suggestions.  I am using "selected(${tools_used},'other')" in most of the clauses.  This works perfectly in the mobile app and displays perfectly in the preview form portion of the Survey123 Connect program.  However it fails on the web version of the survey.  When I swap in the "contains" function for the "selected" function the web version works as it is supposed to.  Thank you for this work-around, but it is a work-around as the use of the "selected" function should work. 

Why does the Survey123 app interpret the "select" function differently from the xlsform standards in some cases?  Based on the example shown for use of the "select" function of "xlsform.org/en/" (shown below in italics).

typenamelabelrelevant
select_one yes_nolikes_pizzaDo you like pizza? 
select_multiple pizza_toppings or_otherfavorite_toppingFavorite toppings${likes_pizza} = ‘yes’
textfavorite_cheeseWhat is your favorite type of cheese?selected(${favorite_topping}, ‘cheese’)
survey                                                      choices                    settings 

list namenamelabel
pizza_toppingscheeseCheese
pizza_toppingspepperoniPepperoni
pizza_toppingssausageSausage
survey                 choices     settings

Since the pizza topping question allows multiple responses, we have to use the selected(${favorite_topping}, 'cheese') expression, because we want the cheese question to appear every time the user selects cheese as one of the answers (regardless of whether additional answers are selected).

Is this recorded somewhere as a bug?  Survey designers should be able to expect the effective implementation of xlsforms standards across platforms.   Again - I appreciate the help.

0 Kudos