# Returning a value from a Button script does not work with "Ask User to provide value"

**URL:** <https://community.fibery.io/t/returning-a-value-from-a-button-script-does-not-work-with-ask-user-to-provide-value/5063>\
**Category:** Bugs & Issues\
**Tags:** automations\
**Created:** [September 1, 2023, 7:15pm UTC](https://community.fibery.io/t/returning-a-value-from-a-button-script-does-not-work-with-ask-user-to-provide-value/5063 "2023-09-01T19:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [September 1, 2023, 7:15pm UTC](https://community.fibery.io/t/returning-a-value-from-a-button-script-does-not-work-with-ask-user-to-provide-value/5063/1 "2023-09-01T19:15:29Z")

</div>

> Now you can add a custom message by returning a string at the end of your script:
> 
> return tasks.length+" Tasks have been added from the template"

This does not work when the Automation makes use of “Ask user to provide value”:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/e/eb8ad7e7c0f85cb8cb0840c674f2464aa8268541.png)
