Re: requiredfields

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40632
interpreted = N
texte = would there be a way to do it with [formvariables] and one text array so it's more concise?----- Original Message ----- From: Rob Marquardt To: WebCatalog Talk Sent: Friday, June 14, 2002 2:42 PM Subject: Re: requiredfields > on 6/14/02 11:41 AM, Ron Ceballos at ron@specsimple.com so noted... > > > right now i use: > > [math show=f]OK=1[/math] > > [showif [name]=][math show=f]OK=0[/math][/showif] > > [showif [Address]=][math show=f]OK=0[/math][/showif] > > > > etc etc... > > > > I was just trying to come up with a better check system....I think this way > > is tedious. > > I use variations on this: > > [text]missingInfo=[/text] > > [showif [url][name][/url]=][text]missingInfo=[missingInfo]Your > name_[/text][/showif] > [showif [url][address][/url]=][text]missingInfo=[missingInfo]Your > address_[/text][/showif] > [showif [url][email][/url]=][text]missingInfo=[missingInfo]Your email > address_[/text][/showif] > [/!][showif [url][email][/url]!][showif [url][grep search=[url][^@, > ]+@[^@, ]+\.[^@, > ]+[/url]&replace=_valid_][email][/grep][/url]!_valid_][text]missingInfo=[m is > singInfo]Your email address must contain no spaces and be in the form of > name@domain.com_[/text][/showif][/showif] > (etc...) > > [showif [missingInfo]=!] > Your submission is missing the following information: >
    > [listwords words=[missingInfo]&delimiters=_]
  • [word] > [/listwords] >
> [/showif] > > [showif [missingInfo]=] > Page to show when all required fields are satisfied. > [/showif] > > The text and formatting associated with the [listwords] loop is put into an > include file for use throughout the site. The problem with using > requiredfields is that it only checks whether a field contains text or not > and the resulting message for empty fields is generic. Rolling your own lets > you check for both missing text and valid entries as well as more control > over the text and how it fits in with the page. > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

    
  1. Re: requiredfields (John Hill 2002)
  2. Re: requiredfields (Grant Hulbert 2002)
  3. Re: requiredfields (Kenneth Grome 2002)
  4. Re: requiredfields (Rob Marquardt 2002)
  5. Re: requiredfields (Joseph D'Andrea 2002)
  6. Re: requiredfields (Rob Marquardt 2002)
  7. Re: requiredfields (Ron Ceballos 2002)
  8. Re: requiredfields (Rob Marquardt 2002)
  9. Re: requiredfields (Ron Ceballos 2002)
  10. Re: requiredfields (Donovan 2002)
  11. Re: requiredfields (John Peacock 2002)
  12. requiredfields (Ron Ceballos 2002)
  13. requiredfields HELP!! (Celeste Paul 2001)
  14. Re: requiredfields HELP!! (Paolo Coppo 2001)
  15. Re: RequiredFields (Rob Marquardt 2000)
  16. Re: RequiredFields (Kenneth Grome 2000)
  17. RequiredFields (Dennis J. Bonsall, Jr. 2000)
  18. Re: RequiredFields and MacOS X Server? (WebDNA Support 2000)
  19. Re: RequiredFields and MacOS X Server? (Kenneth Grome 2000)
  20. RequiredFields and MacOS X Server? (Parker 2000)
  21. Re: RequiredFields parameter (Johann Weber 1998)
  22. Re: RequiredFields parameter (Brian Drum 1998)
  23. Re: Re requiredFields parameter (PCS Technical Support 1998)
  24. Re requiredFields parameter (Johann Weber 1998)
  25. Re: RequiredFields template (Glenn Davis 1997)
  26. Re: RequiredFields template (Trevor Crist 1997)
  27. Re: RequiredFields template (Glenn Davis 1997)
  28. RequiredFields template (Trevor Crist 1997)
  29. Re: RequiredFields template (Kenneth Grome 1997)
  30. Re: RequiredFields template (Grant Hulbert 1997)
  31. Re: RequiredFields template (Glenn Davis 1997)
  32. Re: RequiredFields template (Kenneth Grome 1997)
  33. Re: RequiredFields template (Grant Hulbert 1997)
  34. Re: RequiredFields template (Grant Hulbert 1997)
  35. Re: RequiredFields template (Kenneth Grome 1997)
  36. Re: RequiredFields notes ... (grichter@panavise.com (Gary Richter) 1997)
  37. RequiredFields notes ... (Kenneth Grome 1997)
would there be a way to do it with [formvariables] and one text array so it's more concise?----- Original Message ----- From: Rob Marquardt To: WebCatalog Talk Sent: Friday, June 14, 2002 2:42 PM Subject: Re: requiredfields > on 6/14/02 11:41 AM, Ron Ceballos at ron@specsimple.com so noted... > > > right now i use: > > [math show=f]OK=1[/math] > > [showif [name]=][math show=f]OK=0[/math][/showif] > > [showif [Address]=][math show=f]OK=0[/math][/showif] > > > > etc etc... > > > > I was just trying to come up with a better check system....I think this way > > is tedious. > > I use variations on this: > > [text]missingInfo=[/text] > > [showif [url][name][/url]=][text]missingInfo=[missingInfo]Your > name_[/text][/showif] > [showif [url][address][/url]=][text]missingInfo=[missingInfo]Your > address_[/text][/showif] > [showif [url][email][/url]=][text]missingInfo=[missingInfo]Your email > address_[/text][/showif] > [/!][showif [url][email][/url]!][showif [url][grep search=[url][^@, > ]+@[^@, ]+\.[^@, > ]+[/url]&replace=_valid_][email][/grep][/url]!_valid_][text]missingInfo=[m is > singInfo]Your email address must contain no spaces and be in the form of > name@domain.com_[/text][/showif][/showif] > (etc...) > > [showif [missingInfo]=!] > Your submission is missing the following information: >
    > [listwords words=[missingInfo]&delimiters=_]
  • [word] > [/listwords] >
> [/showif] > > [showif [missingInfo]=] > Page to show when all required fields are satisfied. > [/showif] > > The text and formatting associated with the [listwords] loop is put into an > include file for use throughout the site. The problem with using > requiredfields is that it only checks whether a field contains text or not > and the resulting message for empty fields is generic. Rolling your own lets > you check for both missing text and valid entries as well as more control > over the text and how it fits in with the page. > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ Ron Ceballos

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:

shipCost formula (1997) how to put/keep product customization info in basket? (1998) 2nd WebCatalog2 Feature Request (1996) Setting up WebCatalog with Retail Pro data (1996) SSL Config for Webten on Mac (1998) showif with math? (2000) SSL and reg web* (1997) Help formatting search results w/ table (1997) 2nd WebCatalog2 Feature Request (1996) Grepping URL-Encoded Text (2004) Multiple catalog databases and showcart (1997) Modifying order output (1997) WebDNA FAQ or FAQs -- was "weird problem" (2004) multiple databases (1997) Close-to Comparison Code (1998) Combining Searches (1998) Webcat Crashing Error 1701 (2000) [WebDNA] WebDNA & mySQL (2008) UPPERCASE (1997) listfile options (1997)