On Mon, 31 Jan 2005 13:03:00 +0000 Sandy Thomson <suppressed> wrote: > Hi list, > I am trying to make my checkout accept either a valid email address or a > phone number as a valid form of contact. > > I do not wish to force a user to enter an email address (if they dont > have one). > Likewise if a user enters an email address a phone number is an extra > hassle. > > Ive tried so many different permutations of syntax and also had a good > look at Order.pm. > > My profiles.order (works without the &or line): > > __NAME__ credit_card > > fname=required First Name Required > lname=required Last Name Required > zip=required Zip/Post Code Required > > &or email=email,phone_day=phone Please supply a valid email address or > phone number > > &fatal = yes > > &set=mv_payment Real-time Credit/Debit Card > > &final = yes > &setcheck=mv_email [value email] > > __END__ &or and &and are rather tricky, you can try the following solution: [if cgi email] email=email [else] phone_day=phone [/else] [/if] Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team _______________________________________________ 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.