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:

Show shoppingcart after remove last item (1997) HTML Editors (1997) POP Mail Server Reseting (1998) Summing fields (1997) Multiple cart additions (1997) Encrypt (1999) multipart (2004) BadSuffix with 2.1b3 cgi (1997) Windows 95/NT tip of the month (1998) carriage returns in data (1997) Memory Error message (1998) different show next (1997) [WebDNA] Friday's.. WIP thread (2009) Encrypt question. (2000) WebCatalog Upgrade Pricing? (1997) [WebDNA] html email.. should be a no-brainer.. but it is not parsing. (?) (2010) 2.0 Info (1997) Setting up WebCatalog with Retail Pro data (1996) [math] show=F exists? (1997) [Summary] re: Emailer setup (1997)