Re: SHOWIF/HIDEIF empty fields

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61904
interpreted = N
texte = Gary Krockover wrote: > > Correct, my mistake - it's not the landing page on forms but when > recalling a pre-populated form, such as in the case where the visitor > missed a required field and I've redirected them back to the form while > checking for existing values in a custom "required fields" situation. > > Example, visitor fills in form, that appends to a db but they missed a > field. I redirect them back to the form and repopulate the form from > what they did fill in. .... > but I'm still checking to see if it > equals [raw][field][/raw], either there or when repopulating the form. It should, but remember to put the comparasion string in the right order: [SHOWIF/HIDEIF [RAW][FIELD][/RAW]=[FIELD]] or possibly: [SHOWIF/HIDEIF [RAW][FIELD][/RAW]=[URL][FIELD][/URL]] You really ought to do a double check with both that one and [SHOWIF/HIDEIF ![URL][FIELD][/URL]] An unfilled form field should be passed on as a blank rather tha remain undefined although that doesn't always happen. Another method is to have each field prefilled in with a dummy value:
and then check for that value. Not foolproof unfortunately Or you can do it the old fashioned way with JavaScript of course. If you want absolute max safety, you can easily combine all of those methods. Then only the absolute best of fools can manage to mess it up. Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: SHOWIF/HIDEIF empty fields ( Terry Wilson 2005)
  2. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  3. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  4. Re: SHOWIF/HIDEIF empty fields ( Lester 2005)
  5. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  6. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  7. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  8. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  9. Re: SHOWIF/HIDEIF empty fields ( Bob Minor 2005)
  10. Re: SHOWIF/HIDEIF empty fields ( "WebDna @ Inkblot Media" 2005)
  11. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  12. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  13. Re: SHOWIF/HIDEIF empty fields -- OOPS ( Gary Krockover 2005)
  14. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  15. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  16. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  17. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  18. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  19. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  20. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  21. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  22. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  23. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  24. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  25. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  26. SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
Gary Krockover wrote: > > Correct, my mistake - it's not the landing page on forms but when > recalling a pre-populated form, such as in the case where the visitor > missed a required field and I've redirected them back to the form while > checking for existing values in a custom "required fields" situation. > > Example, visitor fills in form, that appends to a db but they missed a > field. I redirect them back to the form and repopulate the form from > what they did fill in. .... > but I'm still checking to see if it > equals [raw][field][/raw], either there or when repopulating the form. It should, but remember to put the comparasion string in the right order: [SHOWIF/HIDEIF [raw][FIELD][/RAW]=[FIELD]] or possibly: [SHOWIF/HIDEIF [raw][FIELD][/RAW]=[url][FIELD][/URL]] You really ought to do a double check with both that one and [SHOWIF/HIDEIF ![url][FIELD][/URL]] An unfilled form field should be passed on as a blank rather tha remain undefined although that doesn't always happen. Another method is to have each field prefilled in with a dummy value: and then check for that value. Not foolproof unfortunately Or you can do it the old fashioned way with JavaScript of course. If you want absolute max safety, you can easily combine all of those methods. Then only the absolute best of fools can manage to mess it up. Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Frank Nordberg

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:

process SSI (1998) 2nd WebCatalog2 Feature Request (1996) [OT] HTML Table Cell Problem (2003) Authenticate (1997) Search in 2 or more catalogs (1997) OH MY GOD! (1998) Wrapping text (1998) Version 2.0 and 1.6 simultaneous (1997) [WebDNA] ListFiles question (2012) Re:Navigator 4.01 (1997) Sorting Number with commas (2001) WebCat2b12 CGI Mac - [shownext] problem (1997) WebCatalog can't find database (1997) [WebDNA] PCI Vulnerability testing (2009) WebDNA Feature Request (2006) A question on sub-categories (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) can WC render sites out? (1997) Re:[off] Promotions Co? (1997) Newbie search question (between two dates) (2001)