Deactivate comments for certain values (e.g. status closed)

Put your suggestions here.
Post Reply
Edition Nehemia
Posts: 59
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Deactivate comments for certain values (e.g. status closed)

Post by Edition Nehemia »

Hi Sergey
It would be very helpful if comments could be automatically deactivated for certain values. This would help employees to avoid replying to tasks that have already been completed. They would then be forced to search for the current task and contribute there.
Kind regards
Christoph
Edition Nehemia
Posts: 59
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Re: Deactivate comments for certain values (e.g. status closed)

Post by Edition Nehemia »

I have found a good solution. Of course, it would still be great if it was already pre-programmed. But this works too!

Add this code to the item/record page.

Code: Select all

value = $('.form-group-{your-field-number} > td > div').html(); 
if(value == '{close_value}') 
{
  $('.entitly-listing-buttons-left').hide(); //hide the field
}
Thank you Didou12:
viewtopic.php?t=4520
Post Reply