We have the RT::Extension::CustomField::HideEmptyValues installed. But now one of my departments would like their queue to display CustomFields with empty values.
Is it possible to control which Queues or CustomFields that plugin applies to?
We have the RT::Extension::CustomField::HideEmptyValues installed. But now one of my departments would like their queue to display CustomFields with empty values.
Is it possible to control which Queues or CustomFields that plugin applies to?
Looking at the code for RT::Extension::CustomField::HideEmptyValues
it appears to mostly just be callbacks for MassageCustomFields
on /Elements/ShowCustomFields
and /m/ticket/show
(for the old mobile clients UI). I’ve not used it myself, but I suspect you could tweak the Callback file to have something like:
return if($object->RecordType eq 'Ticket' &&
$object->QueueObj->Name eq 'Name of Queue to Ignore');
after the existing return
checking that there is an object and it has an id.
The RT::Extension::CustomField::HideEmptyValues extension is designed to hide custom fields that do not have values. However, you may have a scenario where one department wants to display these empty custom fields. To achieve this, you would need to modify the behavior of the extension or add some custom code to conditionally control when to hide or show these fields based on the queue or specific custom fields.
Does the plugin documentation provide any guidance on applying the plugin conditionally or based on specific criteria?
Is it possible to create separate instances of custom fields for different departments or queues without modifying the original fields?