What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: RequiredFields template

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12382
interpreted = N
texte = >I currently have the following response for checking fields > >[ShowIf [Field1]=] >Please hit the back button and fill in Field One

[/ShowIf] > >[ShowIf [Field2]=] >Please hit the back button and fill in Field Two

[/ShowIf] > >The problem is if multiple fields are left blank, the template returns a >list of Please hit the back button and fill in Field such and such >(there are about 20 fields on the page). Functional, but not necessarily >pretty > >I would prefer to have it return just one message instead. (Please hit >the back button and fill in all required fields) Any ideas on a >solution?This is something I've always wanted but I don't remember if I've ever mentioned before. I think there's a way to do this with math variables if I'm not mistaken ... Here's another approach you may want to use for *some* append situations:I've realized that even if you force people to enter data into a field, you still cannot force them to enter the 'correct' data into that field. Sometimes people think they are getting away with something by entering bogus data. Here's a way to eliminate some of those bogus database records ...Don't even try to check your forms for blank fields. Instead, let people enter whatever they want to enter ... then use some WebDNA to automatically delete any records that have been entered with 'blank' data in your 'required' fields.When I do this, I put some text next to a required field saying this field is required, but I do not try to enforce that requirement. If the person thinks he/she can get away with something by NOT entering data into one of the fields I labeled as required, I just let them think that.Then after they append their record (with blank fields) to the database ... thinking they have gotten away with something ... my WebDNA deletes that record.This makes it very easy for me to create my append forms, because I don't bother to do a lot of checking before the data gets entered, I simply delete any new records that don't live up to my requirements - after they have already been added to the database.While I realize that this will *not* be a good solution in cases where you really *need* to make people enter something, it sure works great in other situations ... :)Sincerely, Ken Grome WebDNA Solutionshttp://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: RequiredFields template (Glenn Davis 1997)
  2. Re: RequiredFields template (Trevor Crist 1997)
  3. Re: RequiredFields template (Glenn Davis 1997)
  4. RequiredFields template (Trevor Crist 1997)
  5. Re: RequiredFields template (Kenneth Grome 1997)
  6. Re: RequiredFields template (Grant Hulbert 1997)
  7. Re: RequiredFields template (Glenn Davis 1997)
  8. Re: RequiredFields template (Kenneth Grome 1997)
  9. Re: RequiredFields template (Grant Hulbert 1997)
  10. Re: RequiredFields template (Grant Hulbert 1997)
  11. Re: RequiredFields template (Kenneth Grome 1997)
>I currently have the following response for checking fields > >[ShowIf [Field1]=] >Please hit the back button and fill in Field One

[/ShowIf] > >[ShowIf [Field2]=] >Please hit the back button and fill in Field Two

[/ShowIf] > >The problem is if multiple fields are left blank, the template returns a >list of Please hit the back button and fill in Field such and such >(there are about 20 fields on the page). Functional, but not necessarily >pretty > >I would prefer to have it return just one message instead. (Please hit >the back button and fill in all required fields) Any ideas on a >solution?This is something I've always wanted but I don't remember if I've ever mentioned before. I think there's a way to do this with math variables if I'm not mistaken ... Here's another approach you may want to use for *some* append situations:I've realized that even if you force people to enter data into a field, you still cannot force them to enter the 'correct' data into that field. Sometimes people think they are getting away with something by entering bogus data. Here's a way to eliminate some of those bogus database records ...Don't even try to check your forms for blank fields. Instead, let people enter whatever they want to enter ... then use some WebDNA to automatically delete any records that have been entered with 'blank' data in your 'required' fields.When I do this, I put some text next to a required field saying this field is required, but I do not try to enforce that requirement. If the person thinks he/she can get away with something by NOT entering data into one of the fields I labeled as required, I just let them think that.Then after they append their record (with blank fields) to the database ... thinking they have gotten away with something ... my WebDNA deletes that record.This makes it very easy for me to create my append forms, because I don't bother to do a lot of checking before the data gets entered, I simply delete any new records that don't live up to my requirements - after they have already been added to the database.While I realize that this will *not* be a good solution in cases where you really *need* to make people enter something, it sure works great in other situations ... :)Sincerely, Ken Grome WebDNA Solutionshttp://www.hui.net/dna/webdna.html 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:

[WriteFile] problems (1997) Problems getting parameters passed into email. (1997) shipping costs (1997) ShowNext (1997) Summing fields (1997) Shiping problem (1999) Globals in 3.x (2002) Can't find templaes (1997) WC2b12: Yes, Formulas.db is for real (1997) Progress !! WAS: Trouble with formula.db (1997) shoppingcart reload qty (1997) Email notification to one of multiple vendors ? (1997) ASP Developer (1999) DON'T use old cart file! (1997) form crasehes server (1997) redirect problem - bug? (2003) Instructions for Digest (1997) Help formatting search results w/ table (1997) emailer w/F2 (1997) RequiredFields template (1997)