# Need help with a return value for a button click

**URL:** https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056
**Category:** Ask for Help
**Created:** [June 16, 2021, 6:12pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056 "2021-06-16T18:12:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shiv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shiv/32/25831_2.png) [@Shiv](https://community.glideapps.com/u/Shiv)
#### Post date: [June 16, 2021, 6:12pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/1 "2021-06-16T18:12:27Z")

</div>

Hi Team,

Am trying to build a workaround for the URL shortening for the details page in a tab and I have an interim solution that I can play around with ( with maybe a negligible delay ) using sheets.

But I need help with the last connecting step.

a. When I click on the share button I am writing a cell/column in my sheet with the link to screen value  
b. I then compute and generate a shorter version of the URL ( I will explain this in a separate post ) and store it in another cell/column  
c. I now want to take this new value from #b to be returned back to the app so that, it can be shared and thereby creating a seamless integration.

Is this possible? Especially step **#C**?

(All these until Glide natively supports URL shortening)

Thanks in advance,  
Shiv

---

<div class="post-metadata">

### Author: ![Shiv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shiv/32/25831_2.png) [@Shiv](https://community.glideapps.com/u/Shiv)
#### Post date: [June 16, 2021, 6:47pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/2 "2021-06-16T18:47:10Z")

</div>

Looks like it was not as bad as I thought it was. Got it using just 2 steps of Actions.

 ![Screenshot 2021-06-17 at 12.15.10 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/f/8f4dd84f6aa556a905940c5fad4026bf52e5da0e.png)

Is there a way I can set a wait condition before the value gets returned to the column from where I am reading the value from?

Like if the cell value is NULL then wait till it gets populated and then return the value to the share link to the screen options.

-Shiv

---

<div class="post-metadata">

### Author: ![adriasoce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adriasoce/32/24153_2.png) [@adriasoce](https://community.glideapps.com/u/adriasoce)
#### Post date: [June 16, 2021, 7:34pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/3 "2021-06-16T19:34:22Z")

</div>

Wait it’s not an action in Glide but you can check this [Wait Action - #4 by noobly\_channel](https://community.glideapps.com/t/wait-action/23794/4) where they talk about an integromat sleep action.

---

<div class="post-metadata">

### Author: ![Shiv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shiv/32/25831_2.png) [@Shiv](https://community.glideapps.com/u/Shiv)
#### Post date: [June 16, 2021, 7:38pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/4 "2021-06-16T19:38:32Z")

</div>

That would mean I would have to setup an integration with an external component which might also cost $$$. Something that can be done internally within Glide is what I was looking at.

-Shiv

---

<div class="post-metadata">

### Author: ![adriasoce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adriasoce/32/24153_2.png) [@adriasoce](https://community.glideapps.com/u/adriasoce)
#### Post date: [June 16, 2021, 7:44pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/5 "2021-06-16T19:44:28Z")

</div>

I know i know but i think internally it’s not possible for the moment to “wait” for something

---

<div class="post-metadata">

### Author: ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)
#### Post date: [June 16, 2021, 7:48pm UTC](https://community.glideapps.com/t/need-help-with-a-return-value-for-a-button-click/28056/6 "2021-06-16T19:48:25Z")

</div>

At the moment no es posible.
