# Script Button Success Message

**URL:** <https://community.fibery.io/t/script-button-success-message/5855>\
**Category:** Get Help\
**Created:** [February 15, 2024, 5:31pm UTC](https://community.fibery.io/t/script-button-success-message/5855 "2024-02-15T17:31:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccollins](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@ccollins](https://community.fibery.io/u/ccollins)\
**Post date:** [February 15, 2024, 5:31pm UTC](https://community.fibery.io/t/script-button-success-message/5855/1 "2024-02-15T17:31:58Z")

</div>

Having trouble making a button success message work. I have no issues making a throw error message work. What is the bare minimum script to return a success message? Let’s say all I want a script to do is to return the message below, what does the entire script look like?

```auto
return `Example success message`;

```

Any help is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 15, 2024, 5:53pm UTC](https://community.fibery.io/t/script-button-success-message/5855/2 "2024-02-15T17:53:28Z")

</div>

```auto
return `Example success message`;

```

should indeed be enough.

---

<div class="post-metadata">

**Author:** ![ccollins](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@ccollins](https://community.fibery.io/u/ccollins)\
**Post date:** [February 15, 2024, 6:11pm UTC](https://community.fibery.io/t/script-button-success-message/5855/3 "2024-02-15T18:11:40Z")

</div>

Interesting! For me, this does indeed work but only if the script is the only action. If I have an update action before or after it, the return message does not work.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 15, 2024, 6:24pm UTC](https://community.fibery.io/t/script-button-success-message/5855/4 "2024-02-15T18:24:48Z")

</div>

For me, it works if the script is the last action of an automation.

---

<div class="post-metadata">

**Author:** ![ccollins](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@ccollins](https://community.fibery.io/u/ccollins)\
**Post date:** [February 15, 2024, 7:22pm UTC](https://community.fibery.io/t/script-button-success-message/5855/5 "2024-02-15T19:22:24Z")

</div>

Very interesting. This wouldn’t work for me until I deleted all actions within that button and recreated them. Now it works. I tried to recreate this issue, but can’t seem to. No idea what was going wrong, but I appreciate the help!
