Hi, I have a text field that depends on the value of a select box.
Generally, the text field needs no validation (i.e. every text is allowed), but when the select box has a special value (in my case it is "text.birthday"), I want a validator to confirm that the text entered is a date. I thought about a combination of "validwhen" and "date" (see example below) The condition only allows that the text field might be empty in some circumstances, but if the field is not empty it must be a date. Do I have to write an own validator for this, or is there a way to do this with the standard validators? Thanks and regards, Achim <form name="searchContactForm"> <field property="value" indexedListProperty="elements" depends="validwhen,date" page="1"> <arg key="editContact.birthday" /> <var> <var-name>test</var-name> <var-value>((elements[].field != 'text.birthday') or ((elements[].field == 'text.birthday') and (*this*!=null)))</var-value> </var> <var> <var-name>datePatternStrict</var-name> <var-value>dd/MM/yyyy</var-value> </var> </field> </form> ********************************************************************************************************************************************* La información contenida en esta transmisión es confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). El uso no autorizado de la información contenida en este correo puede ser sancionado criminalmente de conformidad con la Ley Chilena. Si ha recibido un correo por error, por favor destrúyalo y notifique al remitente. El Departamento de Informática del Ministerio de Educación le recomienda, para el buen desempeño de su correo, lo siguiente: - revise su correo diariamente - pida confirmación de los correos que envía - oriéntese de las buenas practicas en el uso del correo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]