# Requiring fields when editing existing row

**URL:** <https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132>\
**Category:** Ask for Help\
**Created:** [April 4, 2021, 7:11pm UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132 "2021-04-04T19:11:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ric\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ric_1/32/22052_2.png) [@Ric\_1](https://community.glideapps.com/u/Ric_1)\
**Post date:** [April 4, 2021, 7:11pm UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/1 "2021-04-04T19:11:02Z")

</div>

Users are due to add data existing rows, for that there’s a button with the action “link to screen” and “this item”. The obstacle is that on that screen I cannot require fields and users may leave the row incomplete.

Is it anyhow possible to have user edit an existing row with a click of a button while requiring all mandatory fields to be filled?

1. Due to technical reasons I need to edit the existing row and cannot use a form to create a new row and relate them to each other.
2. The “allow users to edit”-pencil icon in the corner lacks the visibility of a “call to action”-button and icon is misleading.

I saw this [work around](https://community.glideapps.com/t/all-items-in-a-form-should-have-a-required-check-box/24421/2) by @Darren_Murphy but the link to screen setup doesn’t require an action to complete.

---

<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:** [April 4, 2021, 7:20pm UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/2 "2021-04-04T19:20:45Z")

</div>

One thing I didn’t mention in that post that you linked to is that I’ll usually also apply CSS to remove the “back button” from the details screen. This forces the user to tap on the button (or buttons) that I provide, and ensures that the associated actions are triggered.

---

<div class="post-metadata">

**Author:** ![Ric\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ric_1/32/22052_2.png) [@Ric\_1](https://community.glideapps.com/u/Ric_1)\
**Post date:** [April 4, 2021, 8:10pm UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/3 "2021-04-04T20:10:27Z")

</div>

Thanks for the hint! 🙂 I haven’t used CSS yet but [found an answer here](https://community.glideapps.com/t/css-for-hiding-stuff/19631).

❤ the Glide Community.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 4, 2021, 11:05pm UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/4 "2021-04-04T23:05:09Z")

</div>

Make sure you remove the tab bar as well 😉

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/f/ef5ab604906235dc33ec0dfcc36127f6e07e70a8.png)

```
<pre><span><style>
[data-test="back-button"]{
display: none;
}
[id="tabBar"]{
display: none;
}
```

---

<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:** [April 5, 2021, 8:02am UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/5 "2021-04-05T08:02:23Z")

</div>

How did you know which names have the objects in glide? or are they universal?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 5, 2021, 9:38am UTC](https://community.glideapps.com/t/requiring-fields-when-editing-existing-row/25132/6 "2021-04-05T09:38:05Z")

</div>

I used Chrome’s inspect element to find those names.
