# How do I perform an action after a SHOW FORM SCREEN - Submit Button is pressed

**URL:** <https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207>\
**Category:** Ask for Help\
**Created:** [June 27, 2023, 1:28pm UTC](https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207 "2023-06-27T13:28:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![colind](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/colind/32/45450_2.png) [@colind](https://community.glideapps.com/u/colind)\
**Post date:** [June 27, 2023, 1:28pm UTC](https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207/1 "2023-06-27T13:28:15Z")

</div>

Hi, I need some help in understanding how the SHOW FORM SCREEN And SUBMIT Button work.

On my Detail screen, I’d like to do the following two things:

(1) Click a button to launch the Show Form Screen.  
(2) After entering the FORM data, I’d like to perform an action, such as triggering a webhook.

If I put (1) and (2) in a Custom Action block, action (2) gets executed automatically when action (1) is launched. In fact, it gets executed EVEN BEFORE the SUBMIT button is pressed on my form.

Is there a way to CONDITIONALLY execute (2) based on, e.g., whether action 1 was cancelled ?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 27, 2023, 1:35pm UTC](https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207/2 "2023-06-27T13:35:23Z")

</div>

You need to separate the actions. First, your button should only open the form screen. When you are inside the form, then you should have an On Submit Action that will be executed when the form is submitted.

---

<div class="post-metadata">

**Author:** ![colind](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/colind/32/45450_2.png) [@colind](https://community.glideapps.com/u/colind)\
**Post date:** [June 27, 2023, 5:57pm UTC](https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207/3 "2023-06-27T17:57:49Z")

</div>

Thank you, Jeff. Your guidance was really good, and I was able to resolve the issue!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [June 28, 2023, 5:58pm UTC](https://community.glideapps.com/t/how-do-i-perform-an-action-after-a-show-form-screen-submit-button-is-pressed/63207/4 "2023-06-28T17:58:39Z")

</div>

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