It doesn't make sense that ACL should validate input. The answer would be "no" but you can research some js validation rules to apply to the field as presented.


On Fri, Mar 29, 2013 at 5:51 AM, Bogdan Iosif <bogdan.iosif@gmail.com> wrote:
Hi list,

I have a text dynamic field required to contain only numbers. I'm thinking of using an ACL with a RegEx to enforce this rule but I can't get the ACL to trigger.

Is what I want possible? Maybe I'm on the wrong track and ACLs are not applicable to *text* dynamic fields?

Here is the ACL:

    $Self->{TicketAcl}->{'10-ACL-Test'} = {
        Properties => {
            Frontend => {
                Action => ['[RegExp]^Agent.*']
            },
        },

        Possible => {
            Ticket => {
                DynamicField_tbx1 => ['[RegExp]^[0-9]*']
            },
        },
    };

Thanks,
bogdan

P.S: I'm not logged in with root.


---------------------------------------------------------------------
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