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:

Databases.tpl (2000) Appending Information from one db to another (1998) Some Questions (1997) Subtotal Not Calculated on Invoice.html (1998) webcat NT with [dos] command (1997) two forms of delivery (1998) Help! WebCat2 bug (1997) Running _every_ page through WebCat ? (1997) Server slowing down. (1997) Help name our technology! I found it (1997) YACBQ.....(Yet another checkbox question) (2000) Emailer (1997) sorting dates (1999) Fields/Forms Processing (1998) Bug? (1997) Delayed Redirect (2000) Chatroom (2000) SKU (1997) find with exceptions (1997) shipping help (1998)