Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10495
interpreted = N
texte = >For text fields it makes sense, but not for checkboxes. The VALUE parameter >is always preset in a checkbox tag, so this won't do it. Grant says >the unchecked checkbox fieldname doesn't even exist in the list of >parameters (no matter what you set the VALUE to in advance) and he's right.The syntax looks a little weird for determining if a checkbox is NOT checked, but here's the basic idea: since the literal text that shows up is [formvariable] (without the quotes), you need to do a showif based on that literal text. We use the [raw] tag here to force WebDNA to ignore the brackets and do a comparison based on the brackets and text inside.[showif [formvariable]=[raw][formvariable][/raw]] Wasn't checked! ([formvariable] has no value) [/showif]Make sense? If you left the [raw] tags off, this wouldn't work: showif would ALWAYS show, because it would either look like[showif [formvarable]=[formvariable]] (in the case that it's not set) [showif hello=hello] (in the case that formvariable=helloGrant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  2. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Grant Hulbert 1997)
  3. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  4. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (grichter@panavise.com (Gary Richter) 1997)
  5. WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
>For text fields it makes sense, but not for checkboxes. The VALUE parameter >is always preset in a checkbox tag, so this won't do it. Grant says >the unchecked checkbox fieldname doesn't even exist in the list of >parameters (no matter what you set the VALUE to in advance) and he's right.The syntax looks a little weird for determining if a checkbox is NOT checked, but here's the basic idea: since the literal text that shows up is [formvariable] (without the quotes), you need to do a showif based on that literal text. We use the [raw] tag here to force WebDNA to ignore the brackets and do a comparison based on the brackets and text inside.[showif [formvariable]=[raw][formvariable][/raw]] Wasn't checked! ([formvariable] has no value) [/showif]Make sense? If you left the [raw] tags off, this wouldn't work: showif would ALWAYS show, because it would either look like[showif [formvarable]=[formvariable]] (in the case that it's not set) [showif hello=hello] (in the case that formvariable=helloGrant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Grant Hulbert

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:

Searching (2000) TCPSEND (1999) PCS Frames-Default page is solution! (1997) HELP WITH DATES (1997) t or f (1997) foreign languages, email, webcat (1998) Execute Applescript (1997) OT. Self explanatory (2003) View order not right (1997) webDNA and flash UTF8 translation (2003) Running _every_ page through WebCat ? (1997) RE: webcat error log (1998) Formulas.db + Users.db (1997) Help name our technology! (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) Separate SSL Server (1997) Wanted: Broader string manipulation functions (1997) shipcost (1997) Using WC for Bulk Emailings (1997)