Hide child table according to above selected field

I was working on student information management application using frappe .
I wanted to hide child table cse if department cse is selected and if civil department is selected then cse child table should hide any suggestions please help

Hi @Saba_Fatima,

Please apply the condition in depend on your doctype customize form.
If you select a civil department then the civil table show and if you select a cse department then the cse table show.

Check the above image and set it in your field.

// apply in cse table
eval:doc.department == "cse"

// apply in civil table
eval:doc.department == "civil"

Then reload and check it.
Hope you understand.

Thank You!

Thank You !
This solution worked for me.