ERPNext Conference 2019* ERPNext.com Blog

How to disable comments based on some conditions?


#1

Hi!

Is there a better way to disable comments then “document.querySelectorAll(”.form-comments")[0].style.display=“none”;" ?

I want to disable comments when doctype is in some workflow state