Page 1 of 1

How to hide a column on a children table

Posted: 2017-12-14 22:31
by Celson Aquino
Hello,

This is my first post on forum and I want to add a solution for a problem I had and Ahmed helped me to solve.

I was trying to hide a column of a children table. My master table is Vendas and the children table is Pagamentos. The lookup field that links these tables is Vendas.

The picture below shows the column I was trying to hide. I think the column of the lookup field is not necessary in this screen.

screenshot-localhost-2017-12-14-19-12-51.png
screenshot-localhost-2017-12-14-19-12-51.png (133.22 KiB) Viewed 3568 times

Here is the code Ahmed wrote to solve the problem. I must be added to hooks/footer-extras.php

Code: Select all

<style>
   #vendas-children .pagamentos-venda{ display: none; }
</style>
where pagamentos is the name of my children table and venda is the name of the lookup table.

Below is the screen after apply the code:

screenshot-localhost-2017-12-14-19-17-55.png
screenshot-localhost-2017-12-14-19-17-55.png (98.69 KiB) Viewed 3568 times

Re: How to hide a column on a children table

Posted: 2017-12-15 19:50
by a.gneady
Thanks a lot for sharing :)