Re: Another [header] Q-
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32948
interpreted = N
texte = >I've searched the archives and didn't find a specific answer...>>I have a required field which I used [header9] for. The field is a How did>you hear about us? pulldown. The first
is blank, which will pull>up the You must complete this item header9. That's perfect. The obvious>question is, how can I use another variable name that would be more obvious>to a vistor, such as heard_about_us_how? If I use that variable name (or>another aside from a [header]) all I get is the variable name in the cart.>>Webcat 3.08 NT btw, this is on the invoice.tpl page just before the final>submit if that makes a difference.>>Thanks,>GaryGary, As Ken suggested don't use the required fields feature. Create your own custom errro checking. It's really easy. Do something like this:[showif [header9]=]Sorry, you must select an option for the pull down menu How did you hear about us? [include myform.tpl][/showif]Of course you can get fancier by creating a variable and incrementing it by one if an error such as a blank field occurs and then show the form all over again with all the variables but the missing ones filled in....[math show=f]errors=0[/math][showif [header9]=]Sorry, you must select an option for the pull down menu How did you hear about us? [math show=f]errors=[errors]+1[/math][/showif][showif [someotherfield]=]Sorry, you must select an option for the pull down menu What is your profession? [math show=f]errors=[errors]+1[/math][/showif][showif [errors]>0][include myform.tpl][/showif]Good Luck, Paul>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/ _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Interactive Ink, Inc._\_\_ \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I've searched the archives and didn't find a specific answer...>>I have a required field which I used [header9] for. The field is a How did>you hear about us? pulldown. The first is blank, which will pull>up the You must complete this item header9. That's perfect. The obvious>question is, how can I use another variable name that would be more obvious>to a vistor, such as heard_about_us_how? If I use that variable name (or>another aside from a [header]) all I get is the variable name in the cart.>>Webcat 3.08 NT btw, this is on the invoice.tpl page just before the final>submit if that makes a difference.>>Thanks,>GaryGary, As Ken suggested don't use the required fields feature. Create your own custom errro checking. It's really easy. Do something like this:[showif [header9]=]Sorry, you must select an option for the pull down menu How did you hear about us? [include myform.tpl][/showif]Of course you can get fancier by creating a variable and incrementing it by one if an error such as a blank field occurs and then show the form all over again with all the variables but the missing ones filled in....[math show=f]errors=0[/math][showif [header9]=]Sorry, you must select an option for the pull down menu How did you hear about us? [math show=f]errors=[errors]+1[/math][/showif][showif [someotherfield]=]Sorry, you must select an option for the pull down menu What is your profession? [math show=f]errors=[errors]+1[/math][/showif][showif [errors]>0][include myform.tpl][/showif]Good Luck, Paul>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/ _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Interactive Ink, Inc._\_\_ \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Paul Uttermohlen
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Last WSC shares for sale! (2009)
authenticating a second user, the sequel (1997)
Price characteristics? (1997)
what servers are supported for Typhoon? (1997)
Browser Caching (2003)
Multiple Merchant Accounts? (1997)
Help! WebCat2 bug (1997)
form data submission gets truncated (1997)
Disappearing Database (1998)
Virtual hosting and webcatNT (1997)
oops private message leaked into talk list (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Bug? I don't know... (1999)
Session Number (1998)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
system crashes, event log (1997)
[WebDNA] WebDNA 7 (2011)
Return records from another (1997)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
Simple Database close connection (2001)