|
1 | 1 | --- |
2 | 2 | title: "Add and style text and lists in the Flow Builder" |
3 | | -description: "Add and style titles, subtitles, paragraphs, and lists in Adapty’s onboarding builder, and customize text for on-brand user experiences." |
| 3 | +description: "Add and style titles, subtitles, paragraphs, and lists in Adapty’s flow builder, and customize text for on-brand user experiences." |
4 | 4 | metadataTitle: "Text | Flow Builder | Adapty Docs" |
5 | 5 | --- |
6 | 6 |
|
@@ -67,6 +67,28 @@ The preview updates immediately. |
67 | 67 |
|
68 | 68 | <ZoomImage id="edit-text-part.webp" width="500px" alt="Edit text part" /> |
69 | 69 |
|
| 70 | +## Add conditional text |
| 71 | + |
| 72 | +Conditional text changes what a text element displays based on a condition. For example, a heading can show one message when a user selects the annual plan and a different message for the monthly plan. Conditional text works like [conditional visibility](onboarding-element-visibility), but it swaps the content instead of showing or hiding the element. |
| 73 | + |
| 74 | +To set up conditional text: |
| 75 | + |
| 76 | +1. Select a text element on the canvas. |
| 77 | +2. In the **Design** panel, in the **Content** section, select **Conditional**. |
| 78 | + |
| 79 | +<ZoomImage id="flow-conditional-text.webp" width="500px" alt="Content set to Conditional in the Design panel" /> |
| 80 | + |
| 81 | +3. Build the **if** condition. Choose a property from the **Custom**, **Products**, or **Elements** tab, set the operator, and enter the value to match. For details on the property types, see [Conditional visibility](onboarding-element-visibility). |
| 82 | +4. Under **then**, enter the text to display when the condition is true. Rich text formatting works the same way as for [regular text](#change-styling-for-parts-of-text). To insert a [variable](onboarding-variables), click **{ } Add variable**. |
| 83 | +5. Under **else**, enter the fallback text to display when no condition matches. |
| 84 | +6. (Optional) Click **+ Add else/if** to add more conditions, each with its own text. |
| 85 | + |
| 86 | +:::tip |
| 87 | +To edit conditional text for another language, switch the active locale at the bottom of the editor. Add languages in the **Localizations** panel first — see [Add locale in Flow Builder](add-paywall-locale-in-adapty-paywall-builder). |
| 88 | +::: |
| 89 | + |
| 90 | +<ZoomImage id="flow-conditional-text-1.gif" width="500px" alt="Setting up conditional text with if, then, and else branches" /> |
| 91 | + |
70 | 92 | ## Add lists |
71 | 93 |
|
72 | 94 | :::note |
|
0 commit comments