That didn't work for me - I think because it is checked by default so even though we don't see it, it is being saved checked as yes.
function OnDetailViewLoaded(sender, args)
// the sender here is DetailFormView
var currentForm = sender;
var allowCommentsCheckBox =
(var i = 0; i < fieldControlsIds.length; i++)
var id = fieldControlsIds[i];
) != -1)
allowCommentsCheckBox = $find(id);
var handlerDataBound =
"AllowComments checkbox cannot be found!"
// From Microsoft.Ajax - Function.createDelegate
function createDelegate(a, b)
In Sitefinity 5.4 you can disable comments by default for new news items through the advanced settings:
News > Comments Settings > AllowComments = False
I don't know if this applies to earlier versions too.