Skip to content

Commit e0e314b

Browse files
committed
Conditional text + autosave
1 parent 9b6bc2b commit e0e314b

7 files changed

Lines changed: 35 additions & 13 deletions

File tree

1.08 MB
Loading
190 KB
Loading

src/content/docs/guides/flow-builder/adapty-flow-builder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can place flows anywhere in your app — at first launch, in front of a prem
2828

2929
- **App onboarding**: Showcase your app features, ask questions, and personalize the highlighted features and CTAs based on the quiz answers. See [Build a personalized onboarding flow](onboarding-flow-tutorial).
3030
- **Paywall screens**: Put a feature gate in front of premium content and present your products with feature lists, pricing, and a purchase button. See [Create a basic paywall screen](basic-paywall-screen).
31-
- **Tiered plans in tabs**: Show subscription tiers side by side in tabs, with conditional text that swaps the feature list and CTA as the user switches between them. See [Create a paywall with tabs](paywall-with-tabs) and [Add conditional text to a paywall](paywall-features-per-product).
31+
- **Tiered plans in tabs**: Show subscription tiers side by side in tabs, swapping the feature list and CTA as the user switches between them. See [Create a paywall with tabs](paywall-with-tabs) and [Show different features per product](paywall-features-per-product).
3232
- **Expandable plan lists**: Lead with one highlighted offer and reveal the full product list in a bottom sheet when the user wants to compare. See [Show all plans in a bottom sheet](show-plans-bottom-sheet).
3333
- **Surveys and quizzes**: Collect goals, preferences, or experience level, then use the answers to branch the flow or tailor later screens. See [Inputs and forms in the Flow Builder](builder-inputs-and-forms).
3434
- **Social proof**: Build trust with review cards, ratings, and testimonials right before the purchase decision. See [Reviews and testimonials](builder-reviews-and-testimonials).

src/content/docs/guides/flow-builder/builder-save-publish.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ import ZoomImage from '@site/src/components/ZoomImage';
88

99
The [Flow Builder](adapty-flow-builder) separates saving from publishing. Drafts preserve your work in the Adapty Dashboard, and publishing makes the current version available to users through the SDK. This article covers both actions and when to use each.
1010

11-
:::warning
12-
The Flow Builder doesn't autosave. If you close the page without saving, you lose all unsaved changes and revert to the latest saved version.
13-
:::
14-
1511
## Save a flow as a draft
1612

17-
A draft stores your progress in the Dashboard without affecting what users see. Save often as you build — especially before navigating away from the page.
13+
The Flow Builder autosaves your progress once a minute.
1814

19-
To save a draft, click **Save draft** in the top right of the Flow Builder, or press **Cmd/Ctrl + S**.
15+
To save a draft manually, click **Save draft** in the top right of the Flow Builder, or press **Cmd/Ctrl + S**.
2016

2117
Drafts are private to the Dashboard. They don't change what users see in your app, even if the flow is already assigned to a [placement](placements).
2218

src/content/docs/guides/flow-builder/paywall-features-per-product.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Add conditional text to a paywall"
3-
description: "Use conditional text to swap feature lists based on which product the user selects."
4-
metadataTitle: "Add conditional text to a paywall | Flow Builder | Adapty Docs"
2+
title: "Show different features per product"
3+
description: "Show a different feature list depending on which product the user selects, using conditional visibility."
4+
metadataTitle: "Show different features per product | Flow Builder | Adapty Docs"
55
---
66

7-
This template uses conditional text to highlight different feature lists for different plans. The screen shows two products — for example, Pro and Pro+ — and a different feature list appears depending on which product the user has selected. One product is marked as the default, so its conditional text is visible when the screen first loads.
7+
This template uses conditional visibility to highlight different feature lists for different plans. The screen shows two products — for example, Pro and Pro+ — and a different feature list appears depending on which product the user has selected. One product is marked as the default, so its feature list is visible when the screen first loads.
88

99
## Before you start
1010

@@ -83,6 +83,10 @@ The first feature list describes the default product. It's visible only when the
8383

8484
For more on conditional visibility, see [Conditional visibility](onboarding-element-visibility).
8585

86+
:::tip
87+
Instead of two separate lists, you can add a single list and make the text elements inside it conditional, so one list adapts to the selected product. See [Add conditional text](onboarding-text#add-conditional-text).
88+
:::
89+
8690
To add and configure the feature list:
8791

8892
1. Click **+** > **List** and choose a compact list preset. Icon List works well for paywalls.

src/content/docs/version-3.0/onboarding-text.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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."
44
metadataTitle: "Text | Flow Builder | Adapty Docs"
55
---
66

@@ -67,6 +67,28 @@ The preview updates immediately.
6767

6868
<ZoomImage id="edit-text-part.webp" width="500px" alt="Edit text part" />
6969

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 **&#123; &#125; 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+
7092
## Add lists
7193

7294
:::note

src/data/sidebars/tutorial.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
{
252252
"type": "doc",
253253
"id": "paywall-features-per-product",
254-
"label": "Add conditional text to a paywall"
254+
"label": "Show different features per product"
255255
},
256256
{
257257
"type": "doc",

0 commit comments

Comments
 (0)