Skip to content

docs(flow-builder): formulas and date variables - #879

Merged
YoDenzel merged 9 commits into
mainfrom
feat/flow-formulas
Nov 20, 2026
Merged

YoDenzel merged 9 commits into
mainfrom
feat/flow-formulas

Conversation

@YoDenzel

Copy link
Copy Markdown
Contributor

What this adds

The Flow & Paywall Builder gets two variable types: Date (a calendar day) and Formula (a number or a date that the flow calculates from answers, other variables, and the price of the selected product). The builder's formula dialog links to https://adapty.io/docs/flow-formulas, so the formulas page must be live no later than the builder release.

  • New page flow-formulas (Flow & Paywall Builder > Navigation and interaction, after Custom tags): how to create a formula and a Date variable; the expression syntax (references, numbers, operators and their order); every function (round, floor, mod, today, addDays, addWeeks, addMonths, addYears, addOfferDuration) with its rule and an example; the output type; when a formula has no value; how numbers and dates show in a text element (only round on top gives fixed decimals with the device separator; the five date formats); conditions on formulas and dates; Set variable on a Date; what the builder preview can calculate; five worked examples; the editor errors with fixes; limitations.
  • onboarding-variables: the Value Type step lists Date and Formula, says that both can go into a text element, and links to the formulas page.
  • flow-common-issues: rows for the formula errors that block publishing: the Variables group of the Can't publish yet dialog, and the seven publish error titles with the fix for each.
  • Context mill (flow-logic brief): replaces the "no arithmetic" claim and records a ripple: builder-number-picker and flow-custom-tags still send a BMI calculation to app code. Update them after the builder release.

Checks

  • lint-mdx, check-mdx-parse, internal and external link checks (diff mode), npm test: pass.
  • English build (BUILD_LOCALES=none): builds. The local preview shows the three pages and the new sidebar entry.
  • No screenshots. The page has no screenshot placeholders, and it can get builder screenshots after the release.

🤖 Generated with Claude Code

@YoDenzel
YoDenzel marked this pull request as ready for review November 19, 2026 10:33
@titerman

Copy link
Copy Markdown
Collaborator

Fixed most things in the review commit. Please get back to me on Monday if you've got any feedback.

@YoDenzel
YoDenzel merged commit 1f812ab into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants