numero = 18335
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]=]>>
>>Try using [showif [subject]=] <---meaning equals nothing or [subject] has>no value (empty field)>>and on the other one>>[showif [subject]!] <--meaning does not equal nothing or [subject] has valueAnd on second thought, if you are coming into this page for the first timeand the [subject] has never been hit yet from a get or post look at the[raw][subject][/raw] value. On second thought that is where your problemmight be===============================================Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com===============================================
Associated Messages, from the most recent to the oldest:
Re: Checking for blank form fields 2nd idea (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]=]>>
>>Try using [showif [subject]=] <---meaning equals nothing or [subject] has>no value (empty field)>>and on the other one>>[showif [subject]!] <--meaning does not equal nothing or [subject] has valueAnd on second thought, if you are coming into this page for the first timeand the [subject] has never been hit yet from a get or post look at the[raw][subject][/raw] value. On second thought that is where your problemmight be===============================================Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com===============================================
Gary Richter
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...