# How to SetInteractionText on Conditional Button with Verse

**URL:** <https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 16, 2023, 9:30am UTC](https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078 "2023-06-16T09:30:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CircuitC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CircuitC](https://forums.unrealengine.com/u/CircuitC)\
**Post date:** [June 16, 2023, 9:30am UTC](https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078/1 "2023-06-16T09:30:42Z")

</div>

I am trying to set the interaction text on a conditional button via Verse but i cant figure out how to cast the string i got to a message so i can use it for the SetInteractionText function.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/e/79e0cfae0cb7eef2b6e5949a07dd69f58b39037f.png)

---

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [June 16, 2023, 10:20am UTC](https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078/2 "2023-06-16T10:20:49Z")

</div>

Hi.  
You should use a function that converts a string to a message.

```auto
StringToMessage<localizes>(value:string)<computes> : message = "{value}"

```

---

<div class="post-metadata">

**Author:** ![CircuitC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CircuitC](https://forums.unrealengine.com/u/CircuitC)\
**Post date:** [June 16, 2023, 10:38am UTC](https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078/3 "2023-06-16T10:38:05Z")

</div>

Ah awsome thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 16, 2023, 10:38am UTC](https://forums.unrealengine.com/t/how-to-setinteractiontext-on-conditional-button-with-verse/1201078/4 "2023-07-16T10:38:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
