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:

Counting Inventory (2003) blank page from template (1997) Re1000001: Setting up shop (1997) Change in Host? (1999) TinyStore example templates (1998) Crashing Server (2000) Stumpted Again (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Attention SMSI - DOCS Error (2004) Server crash (1997) Displaying photo attached to first record (1997) WebCatalog [FoundItems] Problem - LONG - (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Re:Non-technical messages ... (1997) Navigator 4.01 (1997) Webstar SSL and Non-SSL question (1998) Searching (second post) (1999) Text data with spaces in them... (1997) credit card (1997) Menu Madness (2001)