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]Yourname_[/text][/showif][showif [url][address][/url]=][text]missingInfo=[missingInfo]Youraddress_[/text][/showif][showif [url][email][/url]=][text]missingInfo=[missingInfo]Your emailaddress_[/text][/showif][/!][showif [url][email][/url]!][showif [url][grep search=[url][^@,]+@[^@, ]+\.[^@,]+[/url]&replace=_valid_][email][/grep][/url]!_valid_][text]missingInfo=[missingInfo]Your email address must contain no spaces and be in the form ofname@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 aninclude file for use throughout the site. The problem with usingrequiredfields is that it only checks whether a field contains text or notand the resulting message for empty fields is generic. Rolling your own letsyou check for both missing text and valid entries as well as more controlover the text and how it fits in with the page.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
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]Yourname_[/text][/showif][showif [url][address][/url]=][text]missingInfo=[missingInfo]Youraddress_[/text][/showif][showif [url][email][/url]=][text]missingInfo=[missingInfo]Your emailaddress_[/text][/showif][/!][showif [url][email][/url]!][showif [url][grep search=[url][^@,]+@[^@, ]+\.[^@,]+[/url]&replace=_valid_][email][/grep][/url]!_valid_][text]missingInfo=[missingInfo]Your email address must contain no spaces and be in the form ofname@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 aninclude file for use throughout the site. The problem with usingrequiredfields is that it only checks whether a field contains text or notand the resulting message for empty fields is generic. Rolling your own letsyou check for both missing text and valid entries as well as more controlover the text and how it fits in with the page.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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)