These v19 docs are archived 🔒.
Go to the
latest docs home
or try if
this exact page is available
in the latest docs.
Formulas (Logic) in the Edit Form
2sxc provides Formulas which let you dynamically change all kind of things in the edit UI. With it you can dynamically change
- the value of the field
- Field settings like
Visibilityto show/hide a fieldDisabledto enable/disable a fieldRequiredto change required or notNameto change the label- ...and many other settings
- Field validation messages
Demo
Get Started
Formulas ar written in JavaScript.
🎓 Get Started with the Formulas Guide
Planned Future features
- Ability to read other properties of fields - like check if a field is visible
- Ability to read other entities / check their types etc.
- Ability to read fields of other entities
History
- Introduced in 2sxc 12.01
- Extended with
Requiredca. v13.00 - Extended with
Notesca. v13.10 - Improve formula designer to allow creating new formulas directly in the designer ca. v14.00
- Added formula designer API help ca. v14.00
- Massively improved v2 Formulas in 2sxc 15.07 (officially released in 16.0)
Shortlink to here: https://go.2sxc.org/formulas