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: