Fluxyn Docs
NodesCoding

Custom Function

Runs custom JavaScript and returns a value to the flow.

Coding

Use this when you need custom data logic but do not need to inject a script tag into the page.

When to use it

  • Compute a value with JavaScript.
  • Normalize a payload in one place before the next node.

Routing behavior

Continues through its connected downstream path when it completes successfully.

Properties

PropertyTypeRequiredDetails
code
code
codeOptionalJavaScript function body. Use return to pass data downstream. Available variables: $ (event data), $eventData (original data), $input (previous node output), $consent (consent state). DO NOT use {{ }} here.

Common mistakes

  • The function should return a value.
  • Keep custom code short and intentional so flows stay maintainable.

Related nodes