# Variable - free text box search working in array field

**URL:** <https://community.dynatrace.com/t/variable-free-text-box-search-working-in-array-field/54645>\
**Category:** Open Q&A\
**Tags:** dql, variables, dashboards\
**Created:** [January 15, 2026, 11:26am UTC](https://community.dynatrace.com/t/variable-free-text-box-search-working-in-array-field/54645 "2026-01-15T11:26:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [January 15, 2026, 11:26am UTC](https://community.dynatrace.com/t/variable-free-text-box-search-working-in-array-field/54645/1 "2026-01-15T11:26:16Z")

</div>

**Hello Community,**

I’m looking for a simple way to define a variable as a free-text input that can be used to search within an array field. The array may contain any number of entries with key/value pairs composed of letters, numbers, and special characters.

The goal is to allow users to type any value into the input box and then apply a DQL filter condition against that specific array field.

For example, I should be able to freely search for values such as:

- 00001112344
- 34h43k-23jn43-
- IdocSale

and similar entries.

I’d appreciate some guidance on how to best perfom such variable + filtering combination!

Thank you!

Yann

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [January 15, 2026, 5:38pm UTC](https://community.dynatrace.com/t/variable-free-text-box-search-working-in-array-field/54645/2 "2026-01-15T17:38:24Z")

</div>

Have you tried the command search?&nbsp;[DQL filter and search commands — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/filter-and-search-commands#search)

Not totally sure if you want to search for the array position of just the record that contains that string.

If just the record, the search command may do the job.

I just suggest to set the freetext variable with some default value that always matches something, so you don’t end up with a widget showing error like “The search pattern mustn’t be empty.”

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 15, 2026, 9:11pm UTC](https://community.dynatrace.com/t/variable-free-text-box-search-working-in-array-field/54645/3 "2026-01-15T21:11:23Z")

</div>

I believe the [search operator](https://docs.dynatrace.com/docs/shortlink/dql-operators#search) (similar to the search command that [@dannemca](https://community.dynatrace.com/user/18264)&nbsp;already suggested) if you need to search in a specific field.&nbsp;  
User search command if you don’t know the field name where to search, use the search operator (~) if you know the field name.
