0

Zk Decimalbox constraint dont work

asked 2017-02-24 19:41:08 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

updated 2017-02-25 07:30:40 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

I have a Decimalbox with a single String constraint like this

"no empty:El monto no puede ser vacio,no negative:El monto no puede ser negativa"

But only a non empty constraint is fired and show all the literal in the wrong value case like this

"no empty:El monto no puede ser vacio,no negative:El monto no puede ser negativa"

I want both constraint are fired when non emtpy showing a message and when is negative value the other message but i couldn't make it work!!

but when i set a String like this it works but with the default messages

constraintForPenalizacion = "no empty,no negative";

What i am doing wrong??

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-25 07:30:01 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

Your doing nothing wrong.

It's a bug of ZK 7 (maybe previous also), and it's resolved in ZK 8.
I tested it in fiddle, what makes it easy to test in what versions it do work.

Chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-02-24 19:41:08 +0800

Seen: 20 times

Last updated: Feb 25 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More