# Custom Code

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Advanced

Block Type: [Regular](https://docs.zingy.ai/app-editor/block-anatomy#regular-block)
{% endhint %}

The **`Custom Code`** block allows you to write and execute custom or proprietary [Javascript](https://en.wikipedia.org/wiki/JavaScript) code, which will be included as-is in the Page Flow or the Cloud Flow at the logical location where the block is placed.

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FSTxkvGvrjF0cNvQLFOB2%2Fimage.png?alt=media&#x26;token=376c8f42-8fd9-464c-9ca1-0152002069e6" alt="" width="431"><figcaption><p>Custom Code block</p></figcaption></figure></div>

The block consists of a [Selectable Input](https://docs.zingy.ai/app-editor/block-anatomy#selectable-input) to bring up a Javascript text editor to write your code as shown below:

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FlrpBePXu9Qm3F5vXM3uW%2Fimage.png?alt=media&#x26;token=d573ace3-a29e-48e8-b75f-07c61310aa3d" alt=""><figcaption><p>Custom Code Editor window</p></figcaption></figure>

***

## Page Flow

For more information about usage of this block inside Page Flow, please see [Coding in Page Flow](https://docs.zingy.ai/app-editor/page-flow/coding-in-page-flow) .

## Cloud Flow

{% hint style="warning" %}
For Cloud Flow,  the **`Custom Code`** block is functional in Business or higher edition apps. This block can be tested in the Standard edition.
{% endhint %}

For more information about usage of this block inside Cloud Flow, please see [Coding in Cloud Flow](https://docs.zingy.ai/app-editor/cloud-flow/coding-in-cloud-flow) .
