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:

Date search - yes or no (1997) Assigning new CART number (1997) JavaScript (1998) security (1997) [WebDNA] User Management System [Cookie] (2008) Protect (1997) Bad match! (2002) HomePage Caution (1997) Problem displaying search result (1997) Return records from another (1997) [Q] Novice's question (1997) More on the email templates (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) FW: 2.01 upgrade problems (1997) WebCatalog-NT?'s (1996) Searching a field and returning the highest value (1997) international time (1997) webmerchant/mac auth. rejects zipcode (1998) Forms Search Questions (1997) WCS Newbie question (1997)