> For the complete documentation index, see [llms.txt](https://docs.trysavvy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trysavvy.com/other-useful-docs/useful-docs/computed-fields.md).

# Computed Fields

{% hint style="info" %}
A "**Computed Field**" is a component that executes custom **Javascript code**. You can select other components as parameters/arguments for your functions. The code will run when those components' value changes.
{% endhint %}

## Some Examples

* Concatenating `first_name` and `last_name`, then returning `full_name`
* Returning a different price ID for a stripe component depending on the user's selection/s
* Fetching data from/to an API
* Returning an array of objects for a repeatable buttons component

### Related docs:

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>
