0

How to create constraint in intBox by comparing value in another label in zul?

asked 2019-01-10 14:17:38 +0800

Alsad gravatar image Alsad
1

Please find my code:

<label value="${each.quantityAvailableToCancel}" width="100%" style="text-align: center;"/>
<intbox value="${each.quantityToCancel}" width="100%" style="margin-left:15px;text-align:center;"
                                constraint="no empty,no negative: Quantity Must be Greater Than Zero"/>

Here ${each.quantityToCancel} is a intbox, where the value entered should not be greater than ${each.quantityAvailableToCancel}"

Can you please help on creating custom constraint for this scenario?

Thanks in Advance :)

delete flag offensive retag edit
Be the first one to answer this question!
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: 2019-01-10 14:17:38 +0800

Seen: 6 times

Last updated: Jan 10 '19

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