How to disallow user to create new entry from ny custom doctype dashoboar

Hello,
I have created my custom doctypes dashboard on which I shows related documents just like item dashboard. now i want to restrict user to create new related document if already one such related document is created.

Regards,
Deep T

Hi @Deep! I believe this needs to have custom scripting. Please refer to this link for Custom Script documentation.

Regards