Checking for blank form fields (sort of...)

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18337
interpreted = N
texte = I'm creating (yet another) bulletin board type application with WebCatalog.I'm using a single page to do both NEW POSTS, and REPLIES.If it's a NEW POST, all of the fields are EMPTY, and the contents needs to be supplied by the user.If it's a REPLY, I'm trying to pass (as a HIDDEN field subject) the contents of the SUBJECT, and have that populate the SUBJECT field for me.The problem is that I can't seem to find any combination of [showif] or [hideif] conditionals that will this.Here's a few of my last attempts:Passing the value via a form with: The page it's calling has the following: [showif [subject]=] Subject: [/showif] [hideif [subject]=] Subject: [/hideif]*OR* [showif [subject]!] Subject: [/showif] [hideif [subject]!] Subject: [/hideif]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.I hope I'm missing something simple, but this is really driving me crazy!Dan Keldsen - djk@delphigroup.com Director, I.S. - webmaster@delphigroup.com The Delphi Group - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 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'm creating (yet another) bulletin board type application with WebCatalog.I'm using a single page to do both NEW POSTS, and REPLIES.If it's a NEW POST, all of the fields are EMPTY, and the contents needs to be supplied by the user.If it's a REPLY, I'm trying to pass (as a HIDDEN field subject) the contents of the SUBJECT, and have that populate the SUBJECT field for me.The problem is that I can't seem to find any combination of [showif] or [hideif] conditionals that will this.Here's a few of my last attempts:Passing the value via a form with: The page it's calling has the following: [showif [subject]=] Subject: [/showif] [hideif [subject]=] Subject: [/hideif]*OR* [showif [subject]!] Subject: [/showif] [hideif [subject]!] Subject: [/hideif]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.I hope I'm missing something simple, but this is really driving me crazy!Dan Keldsen - djk@delphigroup.com Director, I.S. - webmaster@delphigroup.com The Delphi Group - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 Dan Keldsen

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:

WebCat2b12 CGI Mac - [shownext] problem (1997) php vs WebCatalog (2000) Dashes and dots in credit card (1998) WebMerchant 1.6 and SHTML (1997) MacAuthorize order data fields WAS:How To question... (1997) showif/hideif 4.0 (2000) Webcatalog, Webstar and Crasharama (1999) Re:No Data (1997) I hate talking to myself on this list (2004) RE: WebCat name recognition (was MacFinder -- a new WebDNAweb site) (1998) Setting up shop (1997) Re:2nd WebCatalog2 Feature Request (1996) Re1000001: Setting up shop (1997) It finally happened ... (2003) form data submission gets truncated (1997) CSV import suggestions (2007) select multiple (1997) Reversed words (1997) form population (1998) rename a file (1997)