# Why doesn't my custom JavaScript run?

> Page and layout JavaScript depend on your plan; without them the editor is read-only with an upgrade icon. CSS works on every plan. Prefer native settings.

Source: https://tadabase.com/docs/faq/can-i-add-custom-html-or-javascript  
Status: Verified Nov 22, 2026. Checked against the current product

Page and layout JavaScript depend on your plan. If your plan does not include them, the **Javascript** tab's editor is read-only and shows an upgrade icon, so you cannot add or change code there; CSS works on every plan. Custom code is the older way to extend an app: where they cover what you need, use component settings, display rules, workflows or the REST API instead.

## Other reasons code does not run

- Page and layout code runs in the live app only, not inside the builder. Click **Save**, then test with **Preview Page**.
- A page's code runs only on that page; a layout's code runs on every page in the layout.
- Page JavaScript is not added when the page is turned into a PDF.
- Type the code without a script tag around it.

## Try the built-in options first

| You want to | Use |
| --- | --- |
| Show, hide or color values by condition | [Display rules](https://tadabase.com/docs/pages/display-rules) |
| Update records, send email or call another service when something happens | [Workflows](https://tadabase.com/docs/workflows/workflows-overview) |
| Read or write records from outside Tadabase | The [REST API](https://tadabase.com/docs/developers/rest-api-overview) |
| Change fonts, colors and spacing | The **Design** tab, or page and layout CSS |

See [Add CSS and JavaScript to a page or layout](https://tadabase.com/docs/pages/page-css-javascript).
