Re: Checkboxes

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19274
interpreted = N
texte = At 9:55 Uhr 03.08.1998, Charles Kefauver wrote:>If anyone else has a better way to use checkboxes, please let us know... I do not know what exactly you want to do, but if you need ALL boxes on the response page, you could make a [loop] there instead using [formvariables]. That allows more control. Of course, you need numbered variables. Maybe you can adapt this code snippets to your needs: ---input.tpl---
one
two
three
--- countboxes is the number of boxes you have, set it's value to [numfound] and write the names of the checkboxes as cb.[index] to get numbered. The field values can be anything. ---ouput.tpl--- [math show=f]cnt=0[/math] [loop start=1&end=[countboxes]] [math show=f]cnt=cnt+1[/math] [showif [interpret][cb.[math]cnt[/math]][/interpret]^cb] cb.[math]cnt[/math]=off [/showif] [hideif [interpret][cb.[math]cnt[/math]][/interpret]^cb] cb.[math]cnt[/math]=[interpret][cb.[math]cnt[/math]][/interpret] [/hideif]
[/loop] --- In plain speech: #set a counter to 0. #[countboxes] comes from input.tpl and is the length of the loop. #at each run increment the counter to construct the fieldnames. #if [cb.x] containes cb, show cb.x=off #if not, show the value of the field [cb.x] In the above example, when you check just the second checkbox, you get this response: cb.1=off cb.2=222 cb.3=off Hope this helps, Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  2. Re: [OT] Checkboxes! Javascript? ( Clint Davis 2005)
  3. Re: [OT] Checkboxes! Javascript? ( Marc Thompson 2005)
  4. Re: [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  5. Re: [OT] Checkboxes! Javascript? ( Marc Thompson 2005)
  6. [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  7. Re: JavaScript: Select All Checkboxes (Clint Davis 2001)
  8. Re: JavaScript: Select All Checkboxes (David Anderson 2001)
  9. JavaScript: Select All Checkboxes (Clint Davis 2001)
  10. Re: Fwd: checkboxes (Webmaster@4GDATA.com 2000)
  11. Re: Fwd: checkboxes (John Peacock 2000)
  12. Re: Fwd: checkboxes (Webmaster@4GDATA.com 2000)
  13. Re: Fwd: checkboxes (John Peacock 2000)
  14. Re: Fwd: checkboxes (Joseph D'Andrea 2000)
  15. Re: Fwd: checkboxes (John Peacock 2000)
  16. Fwd: checkboxes (Joseph D'Andrea 2000)
  17. Re: checkboxes (Webmaster@4GDATA.com 2000)
  18. FW: checkboxes (Webmaster@4GDATA.com 2000)
  19. Re: [checkboxes] and webcat (Joseph D'Andrea 2000)
  20. Re: [checkboxes] and webcat (Serban Constantinescu 2000)
  21. Re: [checkboxes] and webcat (Charles Kline 2000)
  22. [checkboxes] and webcat (2) (Serban Constantinescu 2000)
  23. Re: [checkboxes] and WebCat (2) (Jesse Proudman 2000)
  24. [checkboxes] and webcat (Serban Constantinescu 2000)
  25. Re: writing checkboxes to a database (The Mooseman 2000)
  26. Re: writing checkboxes to a database (Richard 2000)
  27. Re: writing checkboxes to a database (Richard 2000)
  28. Re: writing checkboxes to a database (Kenneth Grome 2000)
  29. Re: writing checkboxes to a database (Bob Minor 2000)
  30. writing checkboxes to a database (Richard 2000)
  31. Re: question about checkboxes (Bob Minor 1999)
  32. Re: question about checkboxes (Ricky Patten 1999)
  33. Re: question about checkboxes (Kenneth Grome 1999)
  34. question about checkboxes (Mike Jones 1999)
  35. Tiny Store / Checkboxes (John Hill 1998)
  36. Checkboxes and neSKUdata=[blank] (Chris W. 1998)
  37. Re: BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  38. Re: BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  39. BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  40. BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  41. Re: BIG PROBLEMS with Checkboxes!!! (Rob Marquardt 1998)
  42. Re: BIG PROBLEMS with Checkboxes!!! (Rob Marquardt 1998)
  43. Checkboxes on forms?? (Scott Szretter 1998)
  44. Re: Checkboxes on forms?? (Dave MacLeay 1998)
  45. RE: Checkboxes to add to cart... (Jay Van Vark 1998)
  46. RE: Checkboxes to add to cart... (Rob Marquardt 1998)
  47. Re: Checkboxes to add to cart... (PCS Technical Support 1998)
  48. RE: Checkboxes to add to cart... (Pat McCormick 1998)
  49. Checkboxes to add to cart... (Jim V 1998)
  50. Re: Checkboxes (Peter Ostry 1998)
  51. Re: Checkboxes (Charles Kefauver 1998)
  52. Re: Checkboxes (Peter Ostry 1998)
  53. Re: Checkboxes (Rob Marquardt 1998)
  54. Re: Checkboxes (Charles Kefauver 1998)
  55. Re: Checkboxes (Rob Marquardt 1998)
  56. Re: Checkboxes (Charles Kefauver 1998)
  57. Re: Checkboxes (Rob Marquardt 1998)
  58. Re: Checkboxes (Charles Kefauver 1998)
  59. Re: Checkboxes (Charles Kefauver 1998)
  60. Re: Checkboxes (Kenneth Grome 1998)
  61. Re: Checkboxes (Rob Marquardt 1998)
  62. Checkboxes (Charles Kefauver 1998)
  63. Re: multiple selected Checkboxes (Sue Ann Sanders 1998)
  64. Re: multiple selected Checkboxes (Peter Ostry 1998)
  65. multiple selected Checkboxes (Sue Ann Sanders 1998)
  66. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  67. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  68. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  69. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  70. Updating checkboxes made easy !!! (Laurent Pladys 1998)
  71. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  72. Re: Updating checkboxes made easy !!! (Bob Minor 1998)
  73. Re:Multiple appends with checkboxes (Jay Van Vark 1998)
  74. Multiple appends with checkboxes (Gil Poulsen 1998)
  75. Re: Checkboxes (dwilfong@world-wide-art.com (David Wilfong) 1997)
  76. Re: Checkboxes (Kenneth Grome 1997)
  77. Checkboxes (dwilfong@world-wide-art.com (David Wilfong) 1997)
  78. Re: possible, WebCat2.0 and checkboxes-restated (Grant Hulbert 1997)
  79. Re: possible, WebCat2.0 and checkboxes-restated (grichter@panavise.com (Gary Richter) 1997)
  80. Re: possible, WebCat2.0 and checkboxes-restated (Grant Hulbert 1997)
  81. possible, WebCat2.0 and checkboxes-restated (grichter@panavise.com (Gary Richter) 1997)
  82. Re: Is this possible, WebCat2.0 and checkboxes (Grant Hulbert 1997)
  83. Is this possible, WebCat2.0 and checkboxes (grichter@panavise.com (Gary Richter) 1997)
  84. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  85. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Grant Hulbert 1997)
  86. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  87. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (grichter@panavise.com (Gary Richter) 1997)
  88. WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
At 9:55 Uhr 03.08.1998, Charles Kefauver wrote:>If anyone else has a better way to use checkboxes, please let us know... I do not know what exactly you want to do, but if you need ALL boxes on the response page, you could make a [loop] there instead using [formvariables]. That allows more control. Of course, you need numbered variables. Maybe you can adapt this code snippets to your needs: ---input.tpl---
one
two
three
--- countboxes is the number of boxes you have, set it's value to [numfound] and write the names of the checkboxes as cb.[index] to get numbered. The field values can be anything. ---ouput.tpl--- [math show=f]cnt=0[/math] [loop start=1&end=[countboxes]] [math show=f]cnt=cnt+1[/math] [showif [interpret][cb.[math]cnt[/math]][/interpret]^cb] cb.[math]cnt[/math]=off [/showif] [hideif [interpret][cb.[math]cnt[/math]][/interpret]^cb] cb.[math]cnt[/math]=[interpret][cb.[math]cnt[/math]][/interpret] [/hideif]
[/loop] --- In plain speech: #set a counter to 0. #[countboxes] comes from input.tpl and is the length of the loop. #at each run increment the counter to construct the fieldnames. #if [cb.x] containes cb, show cb.x=off #if not, show the value of the field [cb.x] In the above example, when you check just the second checkbox, you get this response: cb.1=off cb.2=222 cb.3=off Hope this helps, Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

Help Encrypt/Decrypt eMail (2003) RequiredFields template (1997) Search for dates greater than [date] (1997) [WriteFile] problems (1997) 'does not contain' operator needed ... (1997) default value from Lookup (was Grant, please help me) (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) First postarg not taking in $Commands (1997) Cant open pages generated by Webcat (2004) Help! WebCat2 bug (1997) BUG in WebCatalog 4.0.1 on Mac OSX (2000) mass mailing (1998) WebCat and image maps (1997) WebCat2 as a chat server? (1997) Error Messges (1997) Mac 2.1b2 speed (1997) Unexpected error (1997) test message 4 (2000) Roundup function? (1997) Formating found categories (1997)