Skip to main content
Home  ›  Blog

Formulas V2 in 2sxc 16 LTS

Formulas had a major update with intellisense, promise-support and more.

What are Formulas?

Best watch this video:

Get Started or Discover What's new

If you just want to get started, here's where to go:

  1. Documentations with Guide
  2. Live Demos in the Tutorial

To read about what's new, continue here...

New: Intellisense in Formulas

Formulas now have intellisense, making it easy to write them directly.

New: Promise Support

Formulas can now return promises instead of a simple value. This makes formulas which retrieve data from a backend much easier to write.

New: Stop Formulas in Code

Some formulas only need to run once, or only until a certain condition has been met. Formulas with promises often should stop after the promise was executed. You can now stop a formula at any time in code:

New: Update Values of Other Fields

Sometimes a formula should set the values of other fields. For example when a dropdown value changes, it may want to reset some other values.

New: Return Value and Promise

Sometimes you want to return a value such as "loading..." and a promise which will replace it once the data has been loaded. This is just an example, there are more things you can return on this object.

New: Show Warnings if Input is not Ideal

You can now show errors or warnings under an input field. Warnings are recommended in scenarios where the input is valid, but not recommended.

New: Lots More!

There is so much more that we can't describe it all, amongst others:

  1. Check if a feature of 2sxc is enabled
  2. Get information about the current user or app
  3. Detect if the current item is metadata for something else

Get Started

💡 Best check out the tutorials and guide.

May the 4th be with you!
iJungleboy and Duje

Daniel Mettler grew up in the jungles of Indonesia and is founder and CEO of 2sic internet solutions in Switzerland and Liechtenstein, an 20-head web specialist with over 800 DNN projects since 1999. He is also chief architect of 2sxc (see github), an open source module for creating attractive content and DNN Apps.

Read more posts by Daniel Mettler