# Settings - ActionScript

## What is Action Script?

{% hint style="danger" %}
**Action Script service has been reorganized as an Enterprise-only premium option.** We're letting you know that Action Script creation service has been discontinued for Business plan (single-user license). **If you're using the Enterprise product, you can still** [**request for Action Script**](https://www.listly.io/contact)**.**

However, only the development team's script writing service has been discontinued—**the Action Script settings field remains available**. If you've already received code that's working properly or are writing your own code, you can continue using it.
{% endhint %}

Action Script is a feature that replays keyboard/mouse actions needed right before extraction to get the web data you want. It's especially useful in situations like these where **you need to click buttons multiple times on a web page to access specific information**:

{% stepper %}
{% step %}
**When you need to click buttons multiple times to get the info you want, and repeat the process**

'Click → wait for input field → enter zip code → click confirm button → wait for new page to load' repeated
{% endstep %}

{% step %}
**When you want to extract daily information that only appears after clicking a specific button**

Select option value → click search button
{% endstep %}
{% endstepper %}

***

## How to Use&#x20;

Save the JavaScript code that defines these actions in the Action Script field. Once the code is configured, the actions will automatically execute each time you re-extract.

{% hint style="info" %}
**Quick Start**&#x20;

➡️ Extract data ➡️ Go to DATABOARD ➡️ Click settings icon ➡️ Enter JavaScript code in Action Script ➡️ Save ➡️ Re-extract
{% endhint %}

<figure><img src="/files/3286829979ddc70f6a97b0935ab4bf1af22f3bd9" alt=""><figcaption></figcaption></figure>

***

## Understanding Action Script through examples

{% stepper %}
{% step %}

#### When you need to click buttons multiple times to get the info you want, and repeat the process

**Example 1**

This is an actual case from a Korean user. It configures shipping address changes in a shopping mall. Multiple actions are needed: **click → wait for input field → enter zip code → click confirm button → wait for new page to load**, etc. Since product details (price, options, etc.) also change depending on the shipping address, these actions need to be applied to all products being collected. LISTLY TEAM wrote the code below and provided it to the user, who just needed to paste it into group settings → action script to apply it all at once.

<figure><img src="/files/6229c1e29e1e5bc24dd2c5bf68c70cdd5f19dc70" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/e2c13eb03649db33b17652e5506991507035fb8b" alt=""><figcaption></figcaption></figure>

**Example 2**

This is an actual case from a Korean user. To monitor real-time exchange rate information, they enter the exchange amount → select country to collect the final amount. The Action Script used here is a bit different. Using a variable called custom\_html, they directly selected and configured the information to extract, setting it up to extract exactly the desired information as shown in the third image.

<figure><img src="/files/68c8947fe90657371695e9bfc315a428bf7865dc" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/a8ceb6cb954077269b0749103b807c385e8529aa" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4d303494c7fa70abc24ca9194c395050ec18c9bd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### When you want to extract daily information that only appears after clicking a specific button

**Example 3**

This is an actual case from an international user. To get search results for the last 2 months on a Norwegian court site, they needed to **select an option value (2 mnd. fremover)** and **click the search button (Søk)**. **Once search results appear, extract with LISTLY Whole**, and they're automating this work with LISTLY to collect data daily.

You can define this in Settings → Action Script with JavaScript code. Since it's difficult for general users to set up directly, LISTLY TEAM helps with the configuration.

For developers, you can test your own code by running it in browser developer tools → Console on the extraction target page to visually confirm if it works properly.

<figure><img src="/files/fd06977f60068a44c4d7f7cfee0e930ebfe5e04e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7fcd9ef765996ebad9dae52dbfbb0b885b72f2bb" alt=""><figcaption></figcaption></figure>

**Example 4**

This is an actual case from a Korean user. The user wanted to extract content that appears when clicking the "Skincare" category as shown in the right image, but the default view when first accessing the page shows "All" category products as shown in the left image.

<div><figure><img src="/files/7b098779bfdb63921921db4212613adbae7199ea" alt=""><figcaption><p>Initial screen</p></figcaption></figure> <figure><img src="/files/cf438fff94c4c38358d5ca6f466475dc8bbd14f6" alt=""><figcaption><p>Screen user wants to extract</p></figcaption></figure></div>

<figure><img src="/files/349e72e8d0e70875cae226820b3e0379ef2aeb3e" alt=""><figcaption></figcaption></figure>

In this case too, save the JavaScript code defining those actions in the Action Script. Once the code is configured, those actions will automatically execute each time you re-extract.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.listly.io/getting-started/databoard-features/settings-actionscript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
