Re: requiredfields

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40631
interpreted = N
texte = 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=[mis 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: [/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 Design800 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/ 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)
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=[mis 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 Design800 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/ Rob Marquardt

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:

WebCat2.0b15-to many nested [xx] tags (1997) PCS Emailer's role ? (1997) orders being printed (1998) NT Version on IIS 4.0 (1997) RE: Formulas.db + Users.db (1997) [convertChars] and in a textarea on a form (1998) PC Authorize??? (2000) ErrorMessages.db suggestion (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) OOPS [Was: OH CRAP!!!!!- Template not found error!!! ] (1999) Nested Loops and SHOWIFs (1997) email [title] (1997) webdna dreamweaver extension. (2003) NT version and O'reily's WebSite (1997) Formulas and Prices (2000) What is your question??? (2003) Problem getting shipping to calculate (2003) Exclamation point (1997) Return records from another (1997) Re:PCS Customer submissions ? (1997)