Restrict DynamicField to certain queues

Moderator: crythias

Locked
fuzzyL
Znuny newbie
Posts: 7
Joined: 22 Nov 2012, 10:12
Znuny Version: 3.1.12

Restrict DynamicField to certain queues

Post by fuzzyL »

Hi, I want to enable a DynamicField only for a few select queues and don't want it to show anywhere else at all. In the ACL examples, I only found a way to limit the possible values of a dynamic field, but how can I hide it for certain queues altogether?

Thanks in advance.
Last edited by fuzzyL on 11 Jan 2013, 11:19, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Restrict DynamicField to certain queues

Post by jojo »

This is only possible with the Feature Add O: Ticket Mask Extension which is only available for Support Customers
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Restrict DynamicField to certain queues

Post by reneeb »

If those fields are not mandatory, you could simply bind JavaScript to the queue dropdown...

Code: Select all

    var $QueueSelect = $('#Dest');
$QueueSelect.change(function() {
    var Selected = $QueueSelect.val();

    if ( Selected == "AnyQueueName" ) {
        $('#LabelDynamicField_<DynamicField>').parent().addClass( 'Hidden' );
    }
});
see viewtopic.php?f=62&t=18465&p=72544&hili ... ide#p72544

If you want it more dynamic, you have to put in more efforts or become support subscription customer of xxx or hire someone ;-)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
fuzzyL
Znuny newbie
Posts: 7
Joined: 22 Nov 2012, 10:12
Znuny Version: 3.1.12

Re: Restrict DynamicField to certain queues

Post by fuzzyL »

I see, thanks.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Restrict DynamicField to certain queues

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked