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

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




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

Seen: 1 times

Last updated: Jan 10

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