[ic] Require either one field or another in form profile checking?

Stefan Hornburg racke at linuxia.de
Wed Apr 13 10:38:15 EDT 2005


JT Justman wrote:

>Hello everyone -
>
>Is there a way within a profile to require either one field or another?
>I wish to validate a contact form, to have either a phone number or an
>e-mail address. I suppose I could do something like add an intermediate
>page that would merge the two values. I thought also about "user defined
>check routines" - but I don't see a simple way to pass both of the
>values at once. Of course I could also do this user-side, but I prefer
>to avoid that. Has anyone done this, or does an elegant solution present
>itself?
>
Try something similar in your profile:

[if !cgi phone_number]
email=required   Need either phone number or email address, dude !
[/if]

Bye
         Racke




More information about the interchange-users mailing list