Actually, never mind - I just realized validation.Manager.add won't replace the function. I'll see if I can find another solution.
On 24.01.2014 14:12, Daniel Wagner wrote: > Hi, > > the validation manager only supports one validation function per field, > but you can always replace it by calling manager.add(field, > validationFunction) again. > So you could initially assign function (A), then later replace it with a > new function that uses the other validation functions to express your logic. > > Regards, > Daniel > > > > On 24.01.2014 10:59, kirra5 wrote: >> Hi >> >> I want to make a more complex validation of individual fields. >> >> *Example:* Lets say that we have a simple TextField. We add one validation >> function (A) to this field right after we create the field. And later, we >> want to add another validation function (B) to this same field. >> >> *Result:* If the condition of both validation functions is fulfilled, then >> the field is valid. >> >> *What I am looking for:* I am searching for an option how to make more >> complex combinations of this validation functions. For example: I want the >> field to be valid if at least one of the validation functions (A or B) is >> fulfilled. And this is only a simple one. There could be even much more >> complex combinations. For example: >> >> (A /or/ B) /and/ (C /xor/ D) //A, B, C, D are validation functions >> >> And so on. >> >> *My questions is:* Can this be done with the current qooxdoo version? >> >> Thank you very much for your help! >> >> >> >> >> -- >> View this message in context: >> http://qooxdoo.678.n2.nabble.com/Complex-validation-of-one-field-OR-XOR-AND-tp7585234.html >> Sent from the qooxdoo mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
