Hi all,
Im checking some validation example & I found this example:
 
   <fd:field id="password" required="true">
      <fd:label>Password:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <fd:length min="5" max="20"/>
      </fd:validation>
    </fd:field>

    <fd:field id="confirmPassword" required="true">
      <fd:label>Re-enter password:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <fd:assert test="password = confirmPassword">
          <fd:failmessage>The two passwords are not equal.</fd:failmessage>
        </fd:assert>
      </fd:validation>
    </fd:field>
but the <fd:assert....> is not very clear for me. I understand
when password is equal confirmPassword then show the failmessage... is that right or there are some mistake?
 
Regards
Roberto
 
 
 
 
 

Reply via email to