# Hiding input components upon submit with custom form action

**URL:** <https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [November 24, 2020, 12:59pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858 "2020-11-24T12:59:08Z")\
**Posts on this page:** 5\
**Page:** 1

<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 24, 2020, 12:59pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858/1 "2020-11-24T12:59:08Z")

</div>

I have custom action that looks like so:

 ![Screen Shot 2020-11-24 at 8.48.35 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/2/1265dae4efbb9f5487e80964eb7a2c860be5fdd9.png)

The flow is:

1. Add Row - writes the temporary form values to a new row
2. Increment - this increments a counter by -1, which has the effect of hiding all the form input components
3. Set Columns - sets a value in a related sheet
4. Show Notification - obvious
5. Set Columns - clears the form user specific values

It all works perfectly, _except_ after clicking the submit button all components are initially hidden (step 2), but then they reappear as the user specific values are cleared at step 5.

I’ve tried moving the Increment step up and down in the flow, but it seems no matter where I put it, the components obstinately refuse to stay hidden.

Any suggestions on how I can get them to behave?

---

<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 24, 2020, 1:12pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858/2 "2020-11-24T13:12:46Z")

</div>

I managed to figure this out shortly after posting the above… duh 🤪

The problem was that I was using a user-specific column for my toggle counter.  
I switched that to a normal column, and everything worked perfectly.

[Talking to the teddy bear](http://www.unconsciousagile.com/teddy_bear_effect) always does the trick 😆

---

<div class="post-metadata">

**Author:** ![apaschea](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@apaschea](https://community.glideapps.com/u/apaschea)\
**Post date:** [June 20, 2022, 8:48pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858/3 "2022-06-20T20:48:24Z")

</div>

I am having the same issue. I am pretty new to glide. The issue is that when I am clearing the form, it doesn’t seem to send it to Airtable. So whatever value was set in Airtable pops back into the form after maybe 10 seconds.

The row is user protected, the column is not user specific.

---

<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 20, 2022, 10:31pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858/4 "2022-06-20T22:31:19Z")

</div>

I don’t have an answer for the airtable issue, but I think it would be much easier, simpler, and safer to just have a single row for all users instead a row for each individual user, and then use user specific columns to hold the values for your custom form. The user specific columns will keep that temporary data within glide and also eliminate any unnecessary syncs to airtable until you actually submit the form and write the values to the permanent table.

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:49pm UTC](https://community.glideapps.com/t/hiding-input-components-upon-submit-with-custom-form-action/18858/5 "2024-01-17T16:49:26Z")

</div>


