Hey,
Any options to disable the edit option of comment.
Right now when user comment something they can always edit it on a later and save.
Any option to disable them through custom script
Hey,
Any options to disable the edit option of comment.
Right now when user comment something they can always edit it on a later and save.
Any option to disable them through custom script
Hi @Rahul-R,
please apply the custom/client script.
frappe.ui.form.on('Your DocType', {
refresh: function(frm) {
$('.btn.btn-link.action-btn').hide();
}
});
Then reload (Ctrl + Shift + R) and check it.
Thank You!
Good Ideal!
But how i can only disable edit some comment have duration more than 5 minutes (ex).
Thank you!
Thanks that is working. But when i uncheck the show all activities toggle button in the comment section, I am able to edit all the previous comments that I have posted.
this is without unchecking the toggle button:
if I unchek it I am able to edit:
Also, the first time I post the comment, I am able to edit it unless I refresh the tab or go back from the doctype and return. In these two cases, I won’t be able to edit it. But, still, the toggle button will provide a loophole.