Select to view content in your preferred language

Another Other in Survey123

14562
10
12-01-2017 01:51 AM
CarmelConnolly
Esri Regular Contributor
9 10 14.6K

Survey123 is an easy way to create new surveys or replace existing paper-based surveys because of the flexibility of its functionality.

One example of this flexibility is the ability to allow users to enter an  Other value as an answer to a multiple choice question if the answer they need is not in the list. This has been implemented for the question What is the property type?:

In the background, Survey123 creates a new field to hold this Other value entered by the end user. The default name of this field is the name of the select_one field followed by ‘_other’, and the alias for this field is ‘Specify other.’.

This means you aren’t able to define your own alias to the question in the survey and, if this is repeated functionality, you can end up with multiple fields with the alias ‘Specify other.’.

I'm going to show you an alternative method of setting up an Other option using the question What type of survey is this?. This post assumes you have a survey set up using the Survey123 Connect for ArcGIS desktop application, with at least one  select_one type question. If you need some help setting up a Survey123 survey, check out the help  videos and  pages.

1.      Find the select_one question you want to implement Other for:

2.      Navigate to the corresponding list for this question in the Choices sheet:
3.      Add Other to the SurveyType list:
Blog 12.png
You have the flexibility of giving a more descriptive option for users here like:
4.      Create a new text question under the select_one question. This will be the text field to hold the Other answer for SurveyType. Name and label it something like this:
5.      Next we need to make this question optional, so it only appears if the end user selects Other for the SurveyType question. For this example, enter ${SurveyType}='Other' in the relevant column:
6.      Save the Excel spreadsheet and try out the functionality in Survey123 Connect for ArcGIS.
7.      When you’re happy with your survey, publish it and see it in action!
This post was originally shared on the Esri UK blog: GeoXchange — Esri UK. It's also a valuable source for posts on other ArcGIS topics by other Esri employees, check it out!
10 Comments
BrentKinal1
Frequent Contributor

Great Post Carmel, I have found no matter how many choices I give my users they are always able to find a new exception to my select_one lists, I have been using the "other" value for a while to accommodate this. Since the 2.4 release added the ability to set a field type to null (seejames tedrick's blog post https://community.esri.com/groups/survey123/blog/2017/10/26/the-power-of-nothing) I've been able to take this a step further and make things a bit cleaner on the database end by putting all responses in a single column rather than one column for the select_one and a second for the "other" text field. Basically I set both these fields to type = null and then calculate with a conditional statement into a hidden field the value of the select_one if <> 'other' and the 'other' text field if select_one = 'other'.  See below:

CarmelConnolly
Esri Regular Contributor

Hi Brent, 

Excellent, glad you've found that functionality too! I've documented in a post on our site (Making Other Work Harder in Survey123 Results — Esri UK ) which will also be published to GeoNet soon

It's such a useful step in making your results usuable post survey!

JorgeFernandes
Emerging Contributor

Thank you for these helpful tips. These tips work perfectly in Select_One questions but I am having issues in Select_Multiple ones. If I choose only the "other", it automatically appears the text box to describe the other item. If I choose multiple options (including other), the text box disappears and I have no option to insert the description of the item.
Have you got any solution for this type of questions?
Thank you for attention.

CarmelConnolly
Esri Regular Contributor

Hi Jorge, 

 

Answers in select_multiple questions are returned in a comma separated list like:

Red, Green, Other 

so, an entry in the Relevant column like ${name} = 'Other' is true if only 'Other' is selected. Using the Selected function allows us to overcome this, something like:

selected(${name}, 'Other’)

or based on the blog above:

selected(${SurveyType}, 'Other')

This also works for select_one questions if you wanted to have a consistent formula in your form!

 

Carmel

JorgeFernandes
Emerging Contributor

Hi Carmel,

Thank you for your prompt reply and for helping me to solve this issue in my survey.

I have just tested it and it is working perfectly.

Thank you.

Best regards,

Jorge

AmosBouskila
New Member

I am really glad to have found this blog, as I encountered a similar issue as Jorge.  So I tried to combine your answer to that of Brent above, and I encountered a problem in the if statement. The way it is written now in Brent's response, it will include in the SurveyType either the SurveyTypeTemp or the SurveyTypeOther. But when I want to apply it in a Select_Multiple question, I want them both, not one or the other.  One attempt that I tried:  if(selected(${SurveyTypeTemp}, 'Other'), ${SurveyTypeOther} and ${SurveyTypeTemp}, ${SurveyTypeTemp})      failed, because it only included the SurveyTypeTemp, including the word Other, and not the value of the Other. What is the proper way to combine the two: SurveyTypeTemp and SurveyTypeOther in the if statement? 

Thanks, Amos

CarmelConnolly
Esri Regular Contributor

Hi Amos,

Are you able to attached your Survey123 spreadsheet so I can understand better what you're trying to do?

Carmel

AmosBouskila
New Member

Hi Carmel, 

The only way  I see to attach items is for picture, but I thought it would be better that you see all the columns in a live document, so I am including below a link where the survey is copied. The survey is still work in progress, but the rows in which I have tried to implement the discussion in this blog topic are in rows 9,10,11. The idea is that normally the crew in the field will  tick 2 of the names provided through the choices, but in some rare cases, there might be an additional person joining, whose name is not included in the list in the choices (too many options). So on such cases, in the select_multiple observers, I want the crew to tick the two people + the button "other", and when they fill in the name of the "other", the name will appear in the same column as the two crew members, named "observers", and not in a separate column.  

In rows 25-27 I have implemented the same idea, but there it was a select_one type of question, so it was easy for me to follow the suggestions here, and it works fine - the "other" is entered in the same column as the bush. 

Chameleo2 draft   

Many thanks, 

Amos

AmosBouskila
New Member

OK, I figured now how to include the value of "other" in the same column as all names in a Select_Multiple question:

referring to the Survey123 spreadsheet linked above

in row 10, col. relevant, I write:

selected(${observers_temp}, 'other’) and (${EntryType}='start')

and in row 11, col. calculation:

if(selected(${observers_temp}, 'other'), concat(${other_observer},",", ${observers_temp}), ${observers_temp})

and it works. 

Amos

FedericoRiet_Sapriza
Occasional Contributor

Hi Carmel, 

thanks for your post, very helpful.

How can I make this work with select_one_external? 

I have a very long list of name code for sampling site (I used select_one_external)  but I want I have an option so the survey users can add a new name code for a new sampling site.

 

Thanks for your help.

Cheers,

Federico

About the Author
Lead Consultant at Esri UK