# Return action as submit action

**URL:** <https://community.glideapps.com/t/return-action-as-submit-action/34240>\
**Category:** Ask for Help\
**Created:** [November 9, 2021, 8:39am UTC](https://community.glideapps.com/t/return-action-as-submit-action/34240 "2021-11-09T08:39:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)\
**Post date:** [November 9, 2021, 8:39am UTC](https://community.glideapps.com/t/return-action-as-submit-action/34240/1 "2021-11-09T08:39:34Z")

</div>

Hello  
When I choose edit form, I can modifiy data, so I have this possibility  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/e/ce492a6ab8b47ff33d138720ab99eeff71c64c63.png)  
But in Return (Retour) Case I have  
in the first

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/c/5cce8c12f89f68fec2ea835635806cb54460d60e.png)  
I change code access  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/b/7bc00891afa2f4a70ea45e8907f05cb1fbbae53e.png)  
I tape  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/c/3ca67b2a167e5084eb9b8031e931bc81f6a13b5d.png)  
I retrieve the code  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/2/82c42c31ae23225f4e158e3c73f02b635508fbad.png)  
How to erase all entries before return ?  
The “Return button” in top left does nothing,  
Whereas if we had the possibility of having an “On Return” action I could code: Clear Data, Goback  
I tested many times, the code is always kept  
So I coded a Return Button like this where I Clear Data of the screen and I goback  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/8/e849e6f9cb86becdd2eaf7290aa6c8bdc067568e.png)  
This solution is not elegant

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 9, 2021, 8:42am UTC](https://community.glideapps.com/t/return-action-as-submit-action/34240/2 "2021-11-09T08:42:30Z")

</div>

Timely… you might want to vote for the below.

> [@Actions + Show\\Hide on the back button](https://community.glideapps.com/t/actions-show-hide-on-the-back-button/34237):
>
> In many cases we need to clear hidden values when a user exits a certain screen (SessionID, DateTime Stamps). I know we can easily do that with actions but I don’t always want the user to get the feeling of “canaled action” , Sometimes its just the flow of the app. Its not best practice to have the same action appear in different places on different screens and in different designs as well. I Wish we could keep a unified UX and not use CSS for hiding the back button and then adding buttons fo…

---

<div class="post-metadata">

**Author:** ![Leonfort2](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Leonfort2](https://community.glideapps.com/u/Leonfort2)\
**Post date:** [November 9, 2021, 8:45am UTC](https://community.glideapps.com/t/return-action-as-submit-action/34240/3 "2021-11-09T08:45:27Z")

</div>

Ok I see, that it is a “problem” for many people
