Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10497
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?Yes! I forgot about using the [raw] context to differentiate between the variable's value and the literal text string, that's where I went wrong in my testing a little later yesterday. After I sent my message to you yesterday, I tried it without [raw] tags, but since [formvariable] always equals [formvariable], it didn't work, of course. I'm using this string now, and it works just fine:[hideif [formvariable]=[raw][formvariable][/raw]][formvariable][/hideif]Thanks Grant!Sincerely, Ken ------------------------------------ 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?Yes! I forgot about using the [raw] context to differentiate between the variable's value and the literal text string, that's where I went wrong in my testing a little later yesterday. After I sent my message to you yesterday, I tried it without [raw] tags, but since [formvariable] always equals [formvariable], it didn't work, of course. I'm using this string now, and it works just fine:[hideif [formvariable]=[raw][formvariable][/raw]][formvariable][/hideif]Thanks Grant!Sincerely, Ken ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Kenneth Grome

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:

2 questions (2000) Nesting format tags (1997) SiteGuard Admin Feature ? (1997) default image if image in code not available (2003) Which is Faster (1998) Changing RAM-cached browser values ... (2000) default error on NT? (1997) Running _every_ page through WebCat ? (1997) Is this possible, WebCat2.0 and checkboxes (1997) denied access (1997) Emails are Stuck (2003) Fun with dates (1997) [OT] Command Line Change Name (2004) Fulfillment emails not emailing after upgrade (2002) More! on [ShowCart] and GET vs. POST (1997) os 8.5 (1999) [WebDNA] SENDMAIL (2017) Re2: Calculating multiple shipping... (1997) Webcat2, WebCommerce, Mod 10 etc. (1997) Quitting WebMerchant ? (1997)