[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.