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
Visibility
to show/hide a fieldDisabled
to enable/disable a fieldRequired
to change required or notName
to 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
Required
ca. v13.00 - Extended with
Notes
ca. 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