# How can i hide the visibility on submit button in a form

**URL:** <https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528>\
**Category:** Ask for Help\
**Created:** [July 1, 2024, 7:34pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528 "2024-07-01T19:34:25Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 1, 2024, 7:34pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/1 "2024-07-01T19:34:25Z")

</div>

I have two employees whose roles are different. On the Glide editing form, I only want the submit button to be visible to the Admin. I changed the visibility settings in the Actions, but it isn’t working.  
 ![Captu](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/9/19ac18ebb619c83449368fbd98ade204ee651ab6.png)  
 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/b/3be78b4efd0fa2d3e436ed62f21e94e163866706.png)

---

<div class="post-metadata">

**Author:** ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)\
**Post date:** [July 1, 2024, 8:32pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/2 "2024-07-01T20:32:06Z")

</div>

This is not how this would work. The way you have currently set this up, this will not hide the submit button. It will only **not** trigger the 4 actions on submit if your other role edits the form.

If you don’t want your other role to not see the “SUBMIT” button, then why don’t you apply the visibilty condition on the Edit Button so they can’t see the edit screen at all. Why do you want them to see the Edit Screen but not Submit the edits?

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 1, 2024, 9:20pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/3 "2024-07-01T21:20:45Z")

</div>

I can’t hide the visibility button, because on the form, there is also a section meant for both the admin and the other employees . If I hide it like you said the other employees won’t be able to access some information meant for them on the form, so that why I just want to hide the submit button

---

<div class="post-metadata">

**Author:** ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)\
**Post date:** [July 1, 2024, 9:47pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/4 "2024-07-01T21:47:03Z")

</div>

Why don’t you use the detail screen to display information?

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 8:19am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/5 "2024-07-02T08:19:18Z")

</div>

The reason I don’t want to use the details screen is that, on the form, the Admin has some specific information to fill out, after which they will use the submit button. The other employee also has their own specific information to fill out, after which they will use a button I created separately at the bottom of the form. For the employee button i created myself, I was able to hide the visibility from the Admin, but I can’t hide the submit button(automatically generated for me on the form), which is solely meant for the Admin, from the employee.

---

<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 2, 2024, 8:35am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/6 "2024-07-02T08:35:53Z")

</div>

You are going about this the wrong way. Instead of trying to hide the submit button, you should use visibility conditions to show or hide specific input components based on user role.

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 9:26am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/7 "2024-07-02T09:26:24Z")

</div>

Attached below is my screen. I did exactly just what you said, on the first screen, the admin has only one text entry to fill out, after which they press the submit button. The admin can’t see the employee input. On the second screen, the employee has their own unique text input, which is only visible to them.

On the admin screen, you will notice that the admin can only see one button. However, on the employee screen, the employee can see two buttons. Only one button is meant for the employee, which is the confirm button.

The issue I am having is that I can hide the “confirm button” I created myself on the employee section from the admin, but I can’t seem to find a section that allows me to hide the submit button, which comes automatically from the Glide form, from the employee. The submit button is supposed to be meant only for the admin.

As shown in the picture below:

 ![Admin](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/b/5bfe04ab4bf778ddbfbf481e4d617df493f3b20e.png)  
 ![agent](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c40733a2dc154fdbeaefd1bd48fd2a77fb823c0c.png)

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [July 2, 2024, 9:43am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/8 "2024-07-02T09:43:32Z")

</div>

Basically, your submit button can perform more than one action depending on the role. In other words, a separate confirm button is no longer needed.

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 10:27am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/9 "2024-07-02T10:27:35Z")

</div>

Please how can i achieve this

---

<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 2, 2024, 10:31am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/10 "2024-07-02T10:31:19Z")

</div>

Just delete the button that you added. You don’t need it.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [July 2, 2024, 10:37am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/11 "2024-07-02T10:37:43Z")

</div>

> [@Okoh\_Peter](#):
>
> ![Capture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/b/3be78b4efd0fa2d3e436ed62f21e94e163866706.png)

Aren’t you working on it by creating an action for your submit button?

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 11:05am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/12 "2024-07-02T11:05:42Z")

</div>

No, they perform different functions. The Submit button, which is meant for the admin, is used to reject a job created by the employee, while the Confirm button, meant for the employee, is used to edit a job created by them. so you see why i can’t delete the button

---

<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 2, 2024, 11:12am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/13 "2024-07-02T11:12:41Z")

</div>

Are they both not editing the same data row?

If there are additional actions that need to be performed when an Admin submits the edit form, this can be handled with an onSubmit action with a condition attached.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [July 2, 2024, 11:18am UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/14 "2024-07-02T11:18:05Z")

</div>

Yes you can create a branch from the onSubmit action as mentioned by Darren.

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 1:39pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/15 "2024-07-02T13:39:29Z")

</div>

@Darren_Murphy they are editing the same data row, but the submit button which is meant for the agent perform different function from the employee button. @Himaladin i added a branch like you said it but it isn’t working, is there anything wrong here  
 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/c/9c24546f5fe2431e7766a9dcd424e65aca2c9ed7.png)

---

<div class="post-metadata">

**Author:** ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)\
**Post date:** [July 2, 2024, 3:41pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/16 "2024-07-02T15:41:06Z")

</div>

@Darren_Murphy @Hassan_Nadeem @Himaladin Thank you all for your ever swift response, so i created a true or false statement on my glide table of which i was able to use it to set a condition on the action button and it works. just what i needed. Thanks once again

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [July 2, 2024, 4:07pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/17 "2024-07-02T16:07:38Z")

</div>

Congratulations to you. For your information, you can remove the submit button using CSS, but this method is not the appropriate solution for this case.

---

<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 9, 2024, 4:08pm UTC](https://community.glideapps.com/t/how-can-i-hide-the-visibility-on-submit-button-in-a-form/74528/18 "2024-07-09T16:08:15Z")

</div>

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