Segment Users Based on Users Input on Text Field
В
Автор: Валерия Зимницкая
Обновлено больше недели назад

In this article, we focus on guiding users through different navigation paths based on their inputs in text fields within your iOS or Web2App onboarding sequence.

It's important to note that text fields can handle various input types, such as String, Integer (Int), and Double. However, for the purpose of setting conditions for user segmentation, these inputs need to be of the "Int" or "Double" type.

Consider a scenario where you ask users to enter their year of birth and wish to segment them based on this information. Here are examples of how this can be implemented:

  • Suppose you want to direct users who input the year 1992 to a specific path, say way1. Similarly, if a user inputs the year 2000, you would navigate them to way2. Any user who inputs a year other than 1992 or 2000 would be directed to way3.

To configure user navigation based on these specific values, you will need to establish three distinct connections, two of them governed by a conditional statement using the "==" operator:

In your iOS or Web2App onboarding users will be segmented accordingly:

  • If you want to navigate all users who weren't born in 1992 to way1, all other users will go to way2

To configure user navigation based on this rule, you will need to establish two distinct connections, one of them governed by a conditional statement using the "!=" operator:

In your iOS or Web2App onboarding users will be segmented accordingly:

  • You could segment users born in years FROM 1992 TO 2000 and navigate them to way1. All other users (those who input years other than between 1992 and 2000), navigate to way2.

To configure user navigation based on this rule, you may establish two distinct connections, one of them governed by 2 conditional statements

  • using the > and < operators (in that case 1992 and 2000 will not be included in way1)

  • or the >= and <= operators (in that case 1992 and 2000 will be included in way1)

Here in the example we showed how >= and <= work :

Settings such conditions, In your iOS or Web2App onboarding users will be segmented accordingly:

Нашли ответ на свой вопрос?