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:
Sorting error (1997)
[interpret] inside the db field? (1997)
[shownext] and descending order (1997)
Error Msg (1998)
RE: incrementing a counter remotely? (1999)
Emailer.Out (1998)
Emailer pref's won't save (2005)
SSL (1998)
special commerce fields (1997)
Upgrading old WebCat Database Files (1997)
Failed to aquire lock on database - Possible deadlock averted (2005)
911: testing if the field is empty (2000)
Urgent help needed (1998)
Variable is resetting itself... (2000)
Country & Ship-to address & other fields ? (1997)
Major Security Hole (1998)
[Shownext] [whynot] (2000)
URL for Discussion Archive (1997)
'does not contain' operator needed ... (1997)
Re:emailer 150 (1997)