Re: 'RequiredField' Question

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16748
interpreted = N
texte = >I've been modifying the 'errormessages.db' to e-mail me when 'TemplateNotFound' and 'BadPassword' happen (with some safety checks), and I was wondering if it was possible to make the 'RequiredField' error a bit more user-friendly?Yes: don't use it. RequiredFields is meant to be a simplistic way to display error messages. If you want to make nicer-looking pages, just use WebDNA to check for valid fields:[ShowIf [field1]=] Sorry, you've got to fill in the Widget information
[/ShowIf][ShowIf [email]=] Sorry, you've got to fill in your email address
[/ShowIf]You have complete control over how your page looks...and this also solves Brian's question about how to convert fieldnames to plain english on the fly.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: 'RequiredField' Question (Rob Marquardt 1998)
  2. Re: 'RequiredField' Question (PCS Technical Support 1998)
  3. Re: 'RequiredField' Question (Brian B. Burton 1998)
  4. Re: 'RequiredField' Question (Gil Poulsen 1998)
  5. 'RequiredField' Question (Dan Keldsen 1998)
>I've been modifying the 'errormessages.db' to e-mail me when 'TemplateNotFound' and 'BadPassword' happen (with some safety checks), and I was wondering if it was possible to make the 'RequiredField' error a bit more user-friendly?Yes: don't use it. RequiredFields is meant to be a simplistic way to display error messages. If you want to make nicer-looking pages, just use WebDNA to check for valid fields:[ShowIf [field1]=] Sorry, you've got to fill in the Widget information
[/ShowIf][ShowIf [email]=] Sorry, you've got to fill in your email address
[/ShowIf]You have complete control over how your page looks...and this also solves Brian's question about how to convert fieldnames to plain english on the fly.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

How fast is your server? (2002) Searching for all records (1998) WebDNA update from Smith Micro (2002) Looking for WebSTAR bomb at startup (2000) Electronic Delivery (1997) WebCat2b13 Command Reference Doc error (1997) Re:Running 2 two WebCatalog.acgi's (1996) Append..... doesn't (2000) End of line control characters (2000) Re:redirect from the errorsMessages.db entry (1997) Uh...can someone help me out with the b10? (1997) WC2f3 (1997) problems with 2 tags shakur (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) TCPconnect issue (2000) Spamming this list! (2000) Triggers (2003) cart number tracking (1998) RE: NewCart+Search with one click ? (1997) New Command prefs ... (1997)