Select to view content in your preferred language

If date of birth is populated how to hide the next alternative questions?

139
1
01-03-2025 09:09 AM
Almaz_Naizghi
Emerging Contributor

Hello,

I am asking a date of birth to clients using Survey123 Connect.

As, sometimes it is difficult to get this information, I added other alternative questions.

Almaz_Naizghi_0-1735922578094.png

Choices for birth_year:

Almaz_Naizghi_1-1735922852055.png

Below are the statements and I don't know how to do it?

1. If (date_birth) is populated, I don't want the (year_birth) and (guess_birth_year) question to show up.

2. If (year_birth) is populated I don't want (guess_birth_year) question to show up. 

The (guess_birth_year) is the last option for the surveyors to choose.

Thank you in advance for your assistance!

 

 

Tags (2)
0 Kudos
1 Reply
DavidSolari
MVP Regular Contributor

Using an expression in the "relevant" column will show the question if the expression is true, and hide the question (and wipe any data inside) if false. The Form Expressions page is a good starting point on how to use this column. For most fields, the "string-length" function is a good test for empty questions, if the length is 0 then the field is empty, otherwise it isn't. Put two and two together and you should have a solution.