I want to figure out how to hide or show a Dashboard link when some Field in the DocType is changed.
So in example:
I got the standard Project DocType and ther is my Selectable field project_type.
When I select the second type of the Project then I want to hide some links at the top Dashboard, like a Material Request and so on.
Hi. Thank you for the perfect solution.
I just need to check back what do you have told me.
I have added the desired code to my .js
When I’m good understand then this code will be fine, right?!
Thank you Chabito79. Now works like a charm.
Another question. Can I replicate this function to another binded DocType? So I mean for another project_type with another hide?
Or I need to add it to this function too?
How can I make a script to just remove the “+” and link on the dashboard but not hide it when the status of the project is already complete?
The “+” and the link on the dashboard doctypes leads to a bug. Because we can still create and submit a document eventhough the project is already tagged as completed.