Vai al contenuto principale

BIN FaJsH Documentation

  • Author:

  • Version: 50

  • Description: Constraint example, a field must contain a value bigger than an other field.

  • Created: 2014-09-02

  • Modified: 2014-09-02

  • Source:

     Modifica Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Constraint example, a field must contain a value bigger than an other field.'>
    		<field name='little' default='10' type='xs:int'/>   
    		<field name='big' default='100' type='xs:int'/>   
    		<constraint name='LittleLessThanBig' category='boolean' selector='.' extra:form.error='[Little] must contain a value smaller than [Big]'>
    				<expression path='little &lt; big'/>
    		</constraint>
    	</complexType>