# Search text of a widget box

**URL:** <https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161>\
**Category:** UI\
**Tags:** box, unreal-engine, Widget, question\
**Created:** [September 4, 2018, 4:14pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161 "2018-09-04T16:14:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_19dbb582](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19dbb582](https://forums.unrealengine.com/u/anonymous_user_19dbb582)\
**Post date:** [September 4, 2018, 4:14pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/1 "2018-09-04T16:14:23Z")

</div>

I want to know if i can search from a box ,whether it contains a specific text

 ![252697-unbenannt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/c/96c6eff6e3a0c969997bb04034354b523b1ecc0e.png)

on this screenshot here i want to hide the text “values” if every of this values are 0.  
i can solve it ,but i dont want to waste that much functions.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 4, 2018, 5:25pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/2 "2018-09-04T17:25:43Z")

</div>

There are 2 ways you can go about it, here’s the hard, ugly way:

Mark all text block as variable (top of the details panel) and then:

 ![252713-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/7/6170cd8d38ad7a594f376105642a321c58e557a7.jpeg)

Note, this is untested but looks ok to me.

* * *

The correct way to do it is to turn the _WrapBox_ items into separate widgets and drop them into the _WrapBox_ as custom widget - this way you can query them very easily and you get a lot of flexibility and other functionality you _may_ want down the line. Depends on how complex this is going to be.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19dbb582](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19dbb582](https://forums.unrealengine.com/u/anonymous_user_19dbb582)\
**Post date:** [September 5, 2018, 10:47am UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/3 "2018-09-05T10:47:10Z")

</div>

I have a little big problem here… every single value is different. (I just didnt have the pictures for the others) so i cant make one new widget for all of the values. Im trying to do this with a data table. Maybe it works

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 5, 2018, 11:20am UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/4 "2018-09-05T11:20:10Z")

</div>

I don’t understand.

Are you referring to the 1st option I posted or the 2nd one. For the second one, you expose a variable on the widget and feed it values from the DataTable. That’s providing you are spawning them dynamically. It’s much easier with static elements that you manually drop in a panel.

Consider providing a bit more info regarding what you’re trying to achieve.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19dbb582](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19dbb582](https://forums.unrealengine.com/u/anonymous_user_19dbb582)\
**Post date:** [September 5, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/5 "2018-09-05T12:31:10Z")

</div>

im trieing to do the 2nd option. This values are values for one of my equipment items.  
As example: I have a sword and he has attackdamage, attackspeed, attackrange and so on… This are item effects

This WrapBox is not only for weapons. It is for every item (shield rings helmet etc.).  
Manually drop in a panel is no option for me, because it would be to full of functions.  
There will be ca 20 different values (an image with value)  
I created a dataTable with the ID,value, Name and image for my itemeffects. It is difficult to explain everything. Im watching out to make a little specific video about the problem when u take a bit time for it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19dbb582](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19dbb582](https://forums.unrealengine.com/u/anonymous_user_19dbb582)\
**Post date:** [September 5, 2018, 2:02pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/6 "2018-09-05T14:02:22Z")

</div>

ok i get it. Thx for your help.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 5, 2018, 2:04pm UTC](https://forums.unrealengine.com/t/search-text-of-a-widget-box/433161/7 "2018-09-05T14:04:11Z")

</div>

I see you’ve figured it out! Well done, sir.
