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:

RE: ShowNext Command (1997) WebCatalog/Mac 2.1b2 New Features (1997) different show next (1997) RE: Problem (1997) Anyone with a solution for this? (2001) Authenticate (1997) Dynamic Form - Shipping Country / State/ Province (2006) Why would prices no appear in cart (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) WebCat2 - Getting to the browser's username/password data (1997) One other big addition... (1997) Server Load (2000) WebDNA Build Area (linux) (2004) Separate SSL Server (1997) WebCatalog can't find database (1997) Re:2nd WebCatalog2 Feature Request (1996) A quickie question (1997) WebMerchant 1.6 and https (1997) sort problems....bug or brain fart? (1997) Spreadsheet App pref. [OT] (2001)