Re: RequiredFields parameter

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20610
interpreted = N
texte = Technical Support wrote:> >Does anyone know whether it is possible to customize the error message > >sent to users when the requiredFields parameter is not satisfied? > >I'd like to be able to provide an error page that is little more > >informative to the user than just a header? required message.> Don't use the RequiredFields parameter, and instead roll your own using > [ShowIf]: > > [ShowIf [header]=]Sorry, you need to fill in the header information > [/ShowIf]Or better yet, edit your ErrorMessage.db to redirect RequiredField errors to a single error page. Don't forget to pack the field name along as param1:RequiredField [redirect /errors/forms.html?command=showpage¶m1=[param1]]Then write your error page with the showif's:[showif [param1]=name]

You forgot to enter your name.[/showif] [showif [param1]=address1]

You forgot to enter your street address.[/showif] Please use your browser’s “Back” button and complete the form.

This way you can use one page for as many forms as needed. Just add a showif for each new RequiredField.:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Associated Messages, from the most recent to the oldest:

    
  1. Re: RequiredFields parameter (Johann Weber 1998)
  2. Re: RequiredFields parameter (Brian Drum 1998)
  3. Re: Re requiredFields parameter (PCS Technical Support 1998)
  4. Re requiredFields parameter (Johann Weber 1998)
Technical Support wrote:> >Does anyone know whether it is possible to customize the error message > >sent to users when the requiredFields parameter is not satisfied? > >I'd like to be able to provide an error page that is little more > >informative to the user than just a header? required message.> Don't use the RequiredFields parameter, and instead roll your own using > [showif]: > > [ShowIf [header]=]Sorry, you need to fill in the header information > [/ShowIf]Or better yet, edit your ErrorMessage.db to redirect RequiredField errors to a single error page. Don't forget to pack the field name along as param1:RequiredField [redirect /errors/forms.html?command=showpage¶m1=[param1]]Then write your error page with the showif's:[showif [param1]=name]

You forgot to enter your name.[/showif] [showif [param1]=address1]

You forgot to enter your street address.[/showif] Please use your browser’s “Back” button and complete the form.

This way you can use one page for as many forms as needed. Just add a showif for each new RequiredField.:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Brian Drum

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:

WebCat2b15MacPlugin - showing [math] (1997) when is date system date or order date? (1997) FW: It gets better... posting problems + Webcat 3.0.7 avail able - did anyone know? (2000) Searching multiple Databases (1997) WebDNA tags in WebMerchant email templates ... (1997) WebCat and AppleShare 6.0 (1998) Problems getting parameters passed into email. (1997) This list needs a digest: rant, rave... (1997) HTML encoding in URLs (1997) Limitations on fields? Server is crashing (1997) SHOWNEXT (1999) Too Much Rootbeer Free Offer (1997) SEA files (1996) Uh...can someone help me out with the b10? (1997) [WebDNA] PHP Array translated to Webdna (2010) FORMS: Returning a specific page (1997) users.db (1999) Some Questions (1997) show all problem (1997) [WriteFile] problems (1997)