Memorizer

The memorizer retains the last received value, acting like a variable that can be filled with varying values. It enables immediate processing of its value without the need for another event to trigger processing. This is why the memorizer consists of an input and an output only, without a trigger.

The primary use case for the memorizer is when handling user inputs from the frontend that require modification before the value is further processed or stored. Essentially, the memorizer treats the act of data input by a user as an event.

In the example below, you can see that the memorizer is automatically filled with the value just entered into field1 of the form widget. The JSONata operator in the attached modifier then extracts the value from field1 and adds 5 to it. The resulting value can be processed immediately, while the user may still be entering further values.

To add a memorizer, click on the memorizer icon in the toolbar belonging to every section. The memorizer will be added to the specific section you have created it in.

The same functionality as with the memorizer can be achieved using the echo function. By dragging the input of the function to the trigger of the function, it is executed with every input change, providing immediate processing without the need for another event.

Explainer Video

Last updated