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:

webcat/webmerchant docs (1997) Date Sorting (1997) catagories (1997) Date or time comparisons have bugs ... (1998) Template Cache problem (2000) Showif, Search and text ? (2003) Clear command and ShoppingCart.tmpl (1997) paymethod=cc allows all zeros (1999) Bug Report, maybe (1997) The IBC root beer has arrived! (1997) PCS Emailer's role ? (1997) read and write you own cookies with webcat (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) RE: Problem (1997) For those of you not on the WebCatalog Beta... (1997) Extended [ConvertChars] (1997) searchable list archive (1997) Netscape 3.01 can't see db in form (1997) Languages (1997) Opinion: [input] should be called [output] ... (1997)