Re: Checking for blank form fields (sort of...)

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18346
interpreted = N
texte = >I would expect that if [subject] doesn't exist, it would leave the field >empty, but instead, it always puts the text [subject] in the field, except >when it really is getting passed a value.Yes, that's on purpose to be compatible with HTML pages that happen to have text in them that look like tags. If WebCatalog doesn't recognize a tag, it leaves it alone.So the solution is to compare against the raw text [xxx] like so:[ShowIf [subject]=[raw][subject][/raw]] No subject passed in! [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Checking for blank form fields (sort of...) (PCS Technical Support 1998)
  2. Re: Checking for blank form fields (sort of...) (Rob Marquardt 1998)
  3. Re: Checking for blank form fields (sort of...) (John Hill 1998)
  4. Checking for blank form fields (sort of...) (Dan Keldsen 1998)
  5. Re: Checking for blank form fields (sort of...) (Gary Richter 1998)
>I would expect that if [subject] doesn't exist, it would leave the field >empty, but instead, it always puts the text [subject] in the field, except >when it really is getting passed a value.Yes, that's on purpose to be compatible with HTML pages that happen to have text in them that look like tags. If WebCatalog doesn't recognize a tag, it leaves it alone.So the solution is to compare against the raw text [xxx] like so:[ShowIf [subject]=[raw][subject][/raw]] No subject passed in! [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

converting tabs (1997) [URGENT] Different Results From Math Tag Depending On OS (2006) Searching on 3 different fields (2003) cart info (1998) Pithy questions on webcommerce & siteedit (1997) Use of & in text areas.... (1998) Problems passing [SKU] with $Replace in 2.0 (1997) Filemaker Pro Template for Orders (1999) WebDNA Quick Reference (Reserved Words) (2000) Strange intermittent WebDNA problems (2008) change the number format (1997) Associative lookup style? (1997) Re:2nd WebCatalog2 Feature Request (1996) WebCat for Site Search? (1997) Re:PCS Customer submissions ? (1997) WebMerchant Problem (1999) Help with database strategy (1998) Help! WebCat2 bug (1997) emailer (1997) WebCat2 Append problem (B14Macacgi) (1997)