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:

Deadlock (1999) WebCat2b15MacPlugin - [protect] (1997) [WebDNA] Installing WebDNA on Windows 7 64 Bit, Home Premium (2010) Plugin or CGI or both (1997) [checkboxes] and webcat (2000) WebCat b13 CGI -shownext- (1997) [OT] Democratic Code (2002) Bug Report, maybe (1997) WebCat2 several catalogs? (1997) [WebDNA] WebDNA7 site randomly dropping tags (2011) Include error (2000) Emailer [cart] file names (1997) [isfile] ? (1997) [WebDNA] read database from other domain (2015) [taxRate] [TaxTotal] ? (1997) Summing fields (1997) WebCat and image maps (1997) suffix mapping for NT? (1997) Re[2]: Next X hits (1996) Online reference (1997)