# Hide button on selection of a row in a table component

**URL:** <https://forum.inductiveautomation.com/t/hide-button-on-selection-of-a-row-in-a-table-component/75127>\
**Category:** Ignition\
**Tags:** perspective, designer\
**Created:** [June 16, 2023, 9:16am UTC](https://forum.inductiveautomation.com/t/hide-button-on-selection-of-a-row-in-a-table-component/75127 "2023-06-16T09:16:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivam\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Shivam\_Kumar](https://forum.inductiveautomation.com/u/Shivam_Kumar)\
**Post date:** [June 16, 2023, 9:16am UTC](https://forum.inductiveautomation.com/t/hide-button-on-selection-of-a-row-in-a-table-component/75127/1 "2023-06-16T09:16:57Z")

</div>

There is a script written on a "on row select" event of a table component to perform editing on our table.

There is a button component -"button1" in a different view, I am trying to hide the button if row selected has a specific column, empty.

The functionality is working fine but when I am on a selected row and press a separate button-"button2" to empty the column. "Button1" component does not hide at the same time as and when the column is getting empty. To hide the Button1 component, we need to select different row and then again come back to the same row to proceed with functionality.

Is there anything I can add to the Button2 component's script to hide the Butto1 component hide, as and when the specific column of selected row gets empty ?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 16, 2023, 9:36am UTC](https://forum.inductiveautomation.com/t/hide-button-on-selection-of-a-row-in-a-table-component/75127/2 "2023-06-16T09:36:54Z")

</div>

how are you hiding it right now?
