25.03.2024, 11:36
Add to Custom JS and use read-only-by-value Additional class.
Code:
$(function() {
$('.read-only-by-value').each(function(_, el) {
var addr = $(el).data('status-object');
if (addr) {
grp.listen(addr, function(obj) {
$(el).toggleClass('item-read-only', !obj.value);
});
}
});
});