Repository navigation
docs(flow-builder): formulas and date variables - #879
Merged
Merged
Conversation
added 4 commits
November 19, 2026 17:07
…ripple to number picker and custom tags
Collaborator
|
Fixed most things in the review commit. Please get back to me on Monday if you've got any feedback. |
added 4 commits
November 20, 2026 13:58
# Conflicts: # src/content/docs/version-3.0/set-up-12-month-commitment.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.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 (onlyroundon 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.flow-logicbrief): replaces the "no arithmetic" claim and records a ripple:builder-number-pickerandflow-custom-tagsstill 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.BUILD_LOCALES=none): builds. The local preview shows the three pages and the new sidebar entry.🤖 Generated with Claude Code