# Condition for inline actions? Urgent

**URL:** <https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379>\
**Category:** Ask for Help\
**Created:** [June 2, 2023, 9:43am UTC](https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379 "2023-06-02T09:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacobkou](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jacobkou/32/54763_2.png) [@Jacobkou](https://community.glideapps.com/u/Jacobkou)\
**Post date:** [June 2, 2023, 9:43am UTC](https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379/1 "2023-06-02T09:43:21Z")

</div>

Hello everyone ,

I am creating an app and I only want signed in users to be able to edit the content - I have been able to do this for adding rows and items using this conditions user profile email is signed in user however when it comes to deleting rows/items I am struggling to make it work.

I attached a screenshot and from that screenshot it seems I can’t add a condition for inline actions. is there a work around this?

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

Also a second problem is that when I view as anyone although all the other actions are restricted if someone selects an item in the table for example APPL a non signed in user can backspace and delete an item in the table. How can I stop this from happening and only allow them to view the data?

Thanks,

Jacob

---

<div class="post-metadata">

**Author:** ![Jacobkou](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jacobkou/32/54763_2.png) [@Jacobkou](https://community.glideapps.com/u/Jacobkou)\
**Post date:** [June 2, 2023, 8:18pm UTC](https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379/2 "2023-06-02T20:18:25Z")

</div>

Essentially I want the rows to only be editable by a signed in user and not ‘anyone’ for the add form It is possible but for ‘allow deleting rows’ and each item is editable there is nothing like that to add a condition. Please can someone help me. It is driving me furious as my app is basically done apart from this bug!!!

---

<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:** [June 3, 2023, 1:08am UTC](https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379/3 "2023-06-03T01:08:44Z")

</div>

> [@Jacobkou](#):
>
> I attached a screenshot and from that screenshot it seems I can’t add a condition for inline actions. is there a work around this?

The data grid component doesn’t allow you to do that. There’s no workaround. You might have to use a collection layout. The title bar action of the data grid, however, does allow you to add conditions.

> [@Jacobkou](#):
>
> Also a second problem is that when I view as anyone although all the other actions are restricted if someone selects an item in the table for example APPL a non signed in user can backspace and delete an item in the table. How can I stop this from happening and only allow them to view the data?

If your data grid allows people to delete rows, and anyone can view that component, then anyone can delete rows regardless of them having signed in or not.

If you still stick with data grid, you would have to have visibility conditions for two different data grid components. One that allows delete and only shows to people who are able to delete, and vice versa.

---

<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 3, 2023, 2:56pm UTC](https://community.glideapps.com/t/condition-for-inline-actions-urgent/62379/4 "2023-06-03T14:56:13Z")

</div>

You may want to consider two separate data grids. One with editing enabled, and one with editing disabled. Then conditionally show each grid based on the user’s signed in status.
