# How to avoid to add a row after submitting a form

**URL:** <https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871>\
**Category:** Ask for Help\
**Created:** [July 13, 2023, 3:08pm UTC](https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871 "2023-07-13T15:08:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zephir](https://avatars.discourse-cdn.com/v4/letter/z/e95f7d/32.png) [@zephir](https://community.glideapps.com/u/zephir)\
**Post date:** [July 13, 2023, 3:08pm UTC](https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871/1 "2023-07-13T15:08:15Z")

</div>

Hi ,  
After a standard form submission , I trigger an customize action which contains a test.  
If the test is true , I want to avoid to add a row.  
The notif comfirms that the test is valid but although I use a “Go back” action, the row is added.  
How can I do to avoid this ?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/6/d68a6e0c0c1e37a6d8e79f6b714ccb61e3f5bced.png)

---

<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:** [July 13, 2023, 3:24pm UTC](https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871/2 "2023-07-13T15:24:12Z")

</div>

You are approaching this the wrong way.  
You can’t prevent a row from being added when a form is submitted.

If you want to prevent duplicates, then the correct approach is to use a Custom Form. With that approach you can detect the duplicate _before_ the form is submitted.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

---

<div class="post-metadata">

**Author:** ![zephir](https://avatars.discourse-cdn.com/v4/letter/z/e95f7d/32.png) [@zephir](https://community.glideapps.com/u/zephir)\
**Post date:** [July 14, 2023, 5:07am UTC](https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871/3 "2023-07-14T05:07:44Z")

</div>

thanks

---

<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:** [July 15, 2023, 5:08am UTC](https://community.glideapps.com/t/how-to-avoid-to-add-a-row-after-submitting-a-form/63871/4 "2023-07-15T05:08:25Z")

</div>

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