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 soit's more concise?----- Original Message -----From: Rob Marquardt
To: WebCatalog Talk Sent: Friday, June 14, 2002 2:42 PMSubject: 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 thisway> > 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 intoan> 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 ownlets> 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:
would there be a way to do it with [formvariables] and one text array soit's more concise?----- Original Message -----From: Rob Marquardt To: WebCatalog Talk Sent: Friday, June 14, 2002 2:42 PMSubject: 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 thisway> > 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 intoan> 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 ownlets> 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)