Re: [ShowIf] a either fields are blank

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20529
interpreted = N
texte = I would make a little include file with something like this:[showif [email]=] text [/showif] [showif [firstname]=][/showif]The advantage of this is that you can tell the user exactly which field needs to be fixed.John. >I want text to show only if certain fields were left blank. As long as I >specify only one field, this works fine: [ShowIf [eMail]!] Your forgot >your email address[/ShowIf] >But I have 10 fields which I would like for the customer to fill out. I >any of these are left blank, I would like something to show. How do you >indicate that if [eMail] or [FirstName] or etc... are blank, then show a >certain text? >This does not work >[ShowIf [email]1&[FirstName]!]Your forgot....[/ShowIf] >I want to avoid using the standard RequiredFields command >Any suggestions? John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [ShowIf] a either fields are blank (Kenneth Grome 1998)
  2. Re: [ShowIf] a either fields are blank (Scott Szretter 1998)
  3. Re: [ShowIf] a either fields are blank (Brian Willson 1998)
  4. Re: [ShowIf] a either fields are blank (John Hill 1998)
  5. Re: [ShowIf] a either fields are blank (Brian Drum 1998)
  6. Re: [ShowIf] a either fields are blank (Mike Eberly 1998)
  7. [ShowIf] a either fields are blank (Mike Eberly 1998)
I would make a little include file with something like this:[showif [email]=] text [/showif] [showif [firstname]=][/showif]The advantage of this is that you can tell the user exactly which field needs to be fixed.John. >I want text to show only if certain fields were left blank. As long as I >specify only one field, this works fine: [ShowIf [eMail]!] Your forgot >your email address[/ShowIf] >But I have 10 fields which I would like for the customer to fill out. I >any of these are left blank, I would like something to show. How do you >indicate that if [eMail] or [FirstName] or etc... are blank, then show a >certain text? >This does not work >[ShowIf [email]1&[FirstName]!]Your forgot....[/ShowIf] >I want to avoid using the standard RequiredFields command >Any suggestions? John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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:

Database field limit? (1998) Formating found categories (1997) WebCat2b13MacPlugIn - [include] (1997) For those of you not on the WebCatalog Beta... (1997) Newbie questions (1998) Where is the secure setting for text variables? (2003) PCS Emailer's role ? (1997) Removing [showif] makes a big difference in speed (1997) WebCatalog for Postcards ? (1997) A Global Variable (1997) OT: Verbose messages - Web*4.2 (2000) Summing fields (1997) taxrate - off by 1 cent (1997) process SSI (1998) PROBLEM (1997) Dynamic Form - Shipping Country / State/ Province (2006) Subject: Authenticating users without dialog box (1997) RE: shrink-wrapped version out yet? (1997) PCS Frames (1997) ShowIF Question (2000)