Hi Frans,
Thanks for these informations.
We faced the same problem here a while ago and I'm still searching for a
solution on how to dynamically through ACL make a field not appearing or
being not mandatory ... :(
I would also be very interested if you find a solution to this :)
Thanks
Laurent
Frans Stekelenburg a écrit :
While still waiting for better suggestions (please!!), I will answer
myself with something that almost gets me where I want; With the
following remarks:
- I am not able to HIDE or conditional SHOW the fields yet
- When using ACL, the sort order determines the first
option(??) and the default value set for the field appears to be
IGNORED. Bummer…. Now I have to use ‘1 – option’, ‘2 – option2’ … as
values to determine my order and default filled field
- Would be nice to be able to make field mandatory with ACL
So here is the current solution:
# ticket acl
$Self->{TicketAcl}->{'ACL-Name-1'} = {
# match properties
Properties => {
# EVERYTHING!
},
Possible => {
Ticket => {
# for these fields the ‘not applicable’ is the only
choice
TicketFreeText2 => ['-'],
TicketFreeText3 => ['-'],
},
},
};
$Self->{TicketAcl}->{'ACL-Name-2'} = {
# match properties
Properties => {
# current ticket match properties
Ticket => {
Queue => ['CHANGE'],
}
},
Possible => {
Ticket => {
TicketFreeText2 => ['1 - Standard','2 -
NonStandard'],
TicketFreeText3 => ['3 - Project','2 -
Budget','1 - Included (Contract)'],
},
},
#PossibleNot => {
# Ticket => {
# TicketFreeText2 => ['-'],
# TicketFreeText3 => ['-'],
# },
#},
};
/ /
*From:* [email protected] [mailto:[email protected]] *On Behalf
Of *Frans Stekelenburg
*Sent:* woensdag 4 maart 2009 12:02
*To:* User questions and discussions about OTRS.
*Subject:* [otrs] ACL FreeFields on type and/or Queue
Hi,
Has anybody an ACL in place that shows certain TicketFreeTexts/Keys (or
hide them) when a Ticket is either of a certain Type (say Change),
and/or Queue?
Some freefields have no purpose in certain conditions and I want them do
be hidden in such case.
KR,
Frans
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/