# Edit Form Submit: Can it also toggle a Boolean?

**URL:** <https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235>\
**Category:** Ask for Help\
**Created:** [July 21, 2023, 11:59pm UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235 "2023-07-21T23:59:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 21, 2023, 11:59pm UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/1 "2023-07-21T23:59:48Z")

</div>

I have an Edit Form that I want to automatically toggle a Boolean to true when submitted. I think that would take an “add action” to the button, but I don’t see where. Is it not possible?

 ![Screenshot 2023-07-21 at 7.55.25 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/8/18bd94e1d8aa2b159711e432faec1db18f8e7822.png)

If I had to add a button, how would I set it up to change that value? It is really easy to forget to switch the toggle, so I am hoping that a button will be easier to remember. If so, then I would remove the displayed editible version of the Boolean, unless that would break something else.

---

<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:** [July 22, 2023, 12:35am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/2 "2023-07-22T00:35:40Z")

</div>

> [@Todd\_Callen](#):
>
> I think that would take an “add action” to the button, but I don’t see where. Is it not possible?

You can use an on-submit action to set the column’s value to true.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/9/c98ec75500a1fba769f3165e08efa84a2c5ac887.png)

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 1:31am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/3 "2023-07-22T01:31:13Z")

</div>

Can I add a second on submit action so that it the screen (which was a detail) returns to the original list screen?

---

<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:** [July 22, 2023, 1:35am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/4 "2023-07-22T01:35:09Z")

</div>

Not sure why you need to do that, but I think you can add a Go back action before the set column action.

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 1:44am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/5 "2023-07-22T01:44:18Z")

</div>

The table is “Mission Log,” and it is where students have submitted various “missions” to be graded. I access this through an Admin screen that lists all the submissions that have bool\_graded? = false.

When I choose one to grade, I click on the item on the list, and it takes me to a detail view that displays all of the fields that were part of the submission. I click on the “Go To Edit Form” button, and I enter the fields that are admin-only.

When I click “Submit” on that screen (instead of “Cancel”), the action toggles bool\_Graded? to true then returns me back to the read-only screen instead of the original list screen (which will now no longer display the one I just graded).

What is a better way? Did I add an extra step?

---

<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:** [July 22, 2023, 2:01am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/6 "2023-07-22T02:01:06Z")

</div>

By “read-only screen”, do you mean the screen when you click the item on the list?

I think you can just have an edit action right on the list screen, and display fields from the submission for you to view in the edit screen. Then when you “Submit” your grading, it will take you back to the list.

Now, a further recommendation is that you might not even need a set column action to know whether you have graded a submission or not. Maybe you can just add an if-then-else column, then if a certain column is not empty, it means that the submission has been graded? It would save you some updates.

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 2:09am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/7 "2023-07-22T02:09:36Z")

</div>

Doh!  
That saves an entire screen!  
Is there a way to put an edit button on each line so I don’t have to hit the […] and then choose “edit”?

---

<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:** [July 22, 2023, 2:27am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/8 "2023-07-22T02:27:30Z")

</div>

Can you screenshot what actions you have for your collection? Do you have two empty actions at the top? Try to delete them, and the edit button will be available on hovering.

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 2:49am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/9 "2023-07-22T02:49:57Z")

</div>

![Screenshot 2023-07-21 at 10.49.32 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/8/b8cff381004946f8f1a7ba913de0385bd60e6a5e.jpeg)

---

<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:** [July 22, 2023, 2:55am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/10 "2023-07-22T02:55:08Z")

</div>

Can you try adding the edit action to “collection item actions” and see if it works?

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 3:13am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/11 "2023-07-22T03:13:15Z")

</div>

No, none led to the edit form, but I didn’t realize you could put actions there, so still a win.

---

<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:** [July 22, 2023, 3:29am UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/12 "2023-07-22T03:29:10Z")

</div>

Can you specify how it “didn’t lead to the edit form”? What specific action did you use?

---

<div class="post-metadata">

**Author:** ![Todd\_Callen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_callen/32/61512_2.png) [@Todd\_Callen](https://community.glideapps.com/u/Todd_Callen)\
**Post date:** [July 22, 2023, 1:41pm UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/13 "2023-07-22T13:41:00Z")

</div>

I got it to work but having the select item action set to open edit screen.  
Thanks a bunch! I’m slowly starting to get this.

---

<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:** [July 22, 2023, 11:50pm UTC](https://community.glideapps.com/t/edit-form-submit-can-it-also-toggle-a-boolean/64235/14 "2023-07-22T23:50:56Z")

</div>

Yeah, that would also work, but if you want a visible button then you can add it here.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/2/02d099961961bf1885660fbb33d6911e11e33db9.png)
