> ## Documentation Index
> Fetch the complete documentation index at: https://developers.circularo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Compose fill by URL

> [!WARNING]
>
> You are viewing the documentation of release 26.1, which is no longer the current one. [Go to the documentation of the current release 26.2](https://developers.circularo.com/).

Circularo offers option to integrate directly to templates. You can pre-fill fields via URL with JavaScript function *encodeURIComponent.*

More information about JavaScript function encodeURIComponent on [http://w3schools.com](http://w3schools.com).

## Example of pre-filling field *Location* in template

Localise Key for value *Location*

```text theme={null}
C_TIME_OFF_REQUEST_LOCATION
```

For finding key you want to use, open template you are using, choose field you want to pre-fill and copy value "Key"

![The Key of a field in the template editor](https://mintcdn.com/circularo-developers/vJOJFZDAJ1W0AXGQ/images/1070956559--image-20240405-121933.png?fit=max\&auto=format\&n=vJOJFZDAJ1W0AXGQ\&q=85\&s=10b330f8edb2125ad53c7bc514887f66)

Adding value to *Location* which will be pre-filled by using JSON. In our example we want to pre-fill **Praha** to location:

```json theme={null}
{"C_TIME_OFF_REQUEST_LOCATION":"Praha"}
```

Using URI for encoding variables

```javascript theme={null}
encodeURIComponent(JSON.stringify({"C_TIME_OFF_REQUEST_LOCATION":"Praha"}))
```

To create address with pre-filled value "Praha" in *Location* field, add encoded variables behind **defaults** in address. See the address for using Praha in Location and pre-filled value in picture below:

```text theme={null}
https://test.circularo.com/compose/create/general?mode=create&definition=c_time_off_request&type=case&defaults=%7B%22C_TIME_OFF_REQUEST_LOCATION%22%3A%22Praha%22%7D
```

![The form opened with the Location field pre-filled](https://mintcdn.com/circularo-developers/vJOJFZDAJ1W0AXGQ/images/1070956559--image-20240405-122035.png?fit=max\&auto=format\&n=vJOJFZDAJ1W0AXGQ\&q=85\&s=bf8da8e64f264de44074880119e097fa)

You can add more options using comma and adding another key to JSON, after encoding, paste value behind **defaults** like in previous example

```json theme={null}
{"C_TIME_OFF_REQUEST_LOCATION":"Praha","C_TIME_OFF_REQUEST_ALT_PHONE":"+420123456789"}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.