How to show or hide fields in Doctype depending on conditions in another document?

In Doctype1, I have an optional check field.
I have a document1 owned by Doctype1 and the “check” field is marked there.
I need to select document1 in the Doctype2 document, and if there
marked “check” then show another field “link”.
And if “check” is not checked, then the “link” field should be hidden.
How to do it?

Hello,

You can go through the below link to know more about conditional display.

Hope this helps.

Thanks for the answer.
I saw this post, this method is suitable for displaying fields inside a doctype.
In order for this to affect other doctypes, I combined this method with dynamic links.

you can take referance from this :- https://www.youtube.com/watch?v=f4gPxUay7v0 go on 2:24,and add in “depends on” :-Eval:doc.fieldname == 1 or Eval:doc.fieldname == 0 , of Doctype2’s field.

using both of this ,you can execute it

you can take referance from this :- https://www.youtube.com/watch?v=f4gPxUay7v0 go on 2:24,and add in “depends on” :-Eval:doc.fieldname == 1 or Eval:doc.fieldname == 0 , of Doctype2’s field.

using both of this ,you can execute it