I have two dynamic fields, continent and country. On selecting a continent, its respective countries should show. However, the list of countries in my drop-down remains unchanged. What could I be doing wrong?
Here are my ACLs from Config.pm.
Code: Select all
#------------------ACLs----------------------------#
$Self->{TicketAcl}->{'100-continent-ACL'} = {
# match properties
Properties => {
# current ticket match properties
Ticket => {
DynamicField_continent => ['Africa'],
}
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
Ticket => {
DynamicField_country => ['Kenya','Uganda','South Africa'],
},
},
};
$Self->{TicketAcl}->{'101-continent-north-america-ACL'} = {
# match properties
Properties => {
# current ticket match properties
Ticket => {
DynamicField_continent => ['North America'],
}
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
Ticket => {
DynamicField_country => ['Canada','United States of America'],
},
},
};
$Self->{TicketAcl}->{'102-continent-Europe-ACL'} = {
# match properties
Properties => {
# current ticket match properties
Ticket => {
DynamicField_continent => ['Europe'],
}
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
Ticket => {
DynamicField_country => ['France'],
},
},
};
#------------end ACLs here-------------------------#
Simon.