# Impulse Values

The liquid-field manipulator can use liquid templates to build a more complicated field value. There are two different attributes of the field that are used based on what type of field is being built.

1. Value
2. Relation

## Value

A value field is used for most field types.

Used with field types:

* Array
* Big Integer
* Big String
* Boolean
* Checkbox
* Date
* Date-Time
* Decimal
* Float
* Integer
* JSON
* Key Value
* Multi-select
* Radio
* Select
* String
* Text Area
* Time
* WYSIWYG

**Template**

```
[{"value":"<insert field value>"}]
[{"value":"<insert field value>"}, {"value":"<insert field value>"}]
```

**Example**

```
[{"value":"my static value"}]
[{"value":"my static value"}, {"value":"my second static value"}]
```

```
[{"value":"{{ content.fields.title.value }}"}]
[{"value":"{{ content.fields.first.value }}"}, {"value":"{{ content.fields.second.value }}"}]
```

## Relation

A relation field is used for any relationship type field.

Used with field types:

* Category
* File
* Image
* Relationship
* Tag

**Template**

```
[{"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"<insert child ID value>"}}}]
[{"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"<insert child ID value>"}}}, {"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"<insert child ID value>"}}}]
```

**Example**

```
[{"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"blt6eb2f3dd9c154fc7"}}}]
[{"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"blt6eb2f3dd9c154fc7"}}}, {"relations":{"parentIds":{"value":"{{content.id}}"}, "childIds":{"value":"blt1716d8a3b330e674"}}}]
```

## Example Use Case

This use case creates a new array of relation values based on values found from an attribute in a JSON field. This uses a variety of filters and tags in the liquid template to convert an array of json strings to an array of relation values for a relationship field.

```
[

<div data-gb-custom-block data-tag="assign" data-rel_arr=''></div>

<div data-gb-custom-block data-tag="assign" data-0='.secondaryTerm[]' data-1='.secondaryTerm[]' data-2='.secondaryTerm[]'></div>

<div data-gb-custom-block data-tag="for">

 

<div data-gb-custom-block data-tag="unless" data-0='' data-1='' data-2=''>

  

<div data-gb-custom-block data-tag="assign" data-0='content.id' data-1='content.id' data-2='content.id' data-3=', ' data-4=', ' data-5=', ' data-6=', ' data-7=', ' data-8=', ' data-9=', ' data-10='category_secondary' data-child_id=''></div>

  

<div data-gb-custom-block data-tag="-"></div>

   {{ rel_arr | append: '{"relations":{"parentIds":{"value":"' | append: content.id | append: '"}, "childIds":{"value":"' | append: term | append: '"} } }' }}
  

<div data-gb-custom-block data-tag="-"></div>

   {{ rel_arr | append: '{"relations":{"parentIds":{"value":"' | append: content.id | append: '"}, "childIds":{"value":"' | append: term | append: '"} } }' | append: ',' }}
  

<div data-gb-custom-block data-tag="-"></div>

 

</div>

</div>
{{ rel_arr }}
]
```


---

# 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://motivlabs.gitbook.io/impulse-user-manual/content-manipulators-motators/liquid-field/basics/impulse-values.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.
