numero = 24665
interpreted = N
texte = I think I can answer these.> 1) If I limit the form to simple text inputs, it works as advertised and> kicks the user back to the form page if they've not filled in a field with> -rqf on the end, or entered an improper email address. However, it isn't> reporting the # of errors nor is it retaining the values of the> formvariables when it returns to the form.mmmm This sounds odd. There is a return in [mailerror] below, other thanthat it should work. What url is it redirecting to? Copy and paste the errordriven url & send it in and that should pretty much tell the story.> [math show=f]error=0[/math][math show=F]mailerror=0[/math][math> show=f]notest=0[/math]> [text]testvar=999999999999[/text]> [formvariables name=rqf&exact=F]> [hideif [name]=template]> [listwords words=[testvar]&delimiters=,][showif [name]=[word]][math> show=f]notest=1[/math][/showif][/listwords]> [text]testvar=[testvar],[name][/text]> [hideif [notest]=1]> [showif [url][value][/url]=][math show=F]error=error+1[/math][/showif]> [showif [name]^email][hideif [value]^@][math> show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][hideif> [GetChars start=2&end=4&from=end][value][/GetChars]^.][math> show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][showif> [URL][value][/URL]^%20][math show=F]error=error+1[/math][/showif][/showif]> [/hideif][showif [notest]=1][math show=f]notest=0[/math][/showif]> [/hideif]> [/formvariables]> > [!]Redirect with the number of errors an all of the formvariables intact[/!]> > [showif [math]error[/math]>0]> [redirect [listwords Words=[referrer]&delimiters=?][showif> [index]=1][word][/showif][/listwords]?error=[math]error[/math]&mailerror=[ma> ilerror][formvariables][hideif> [name]=template]&[name]=[url][value][/url][/hideif][/formvariables]]> [/showif]> [!]End ValidationChecker routine[/!]> 2) The form also normally has check boxes and radio buttons. It doesn't seem> to work correctly with these, even if the form fields don't include an> -rqf in the name. I don't think it likes the fact that some check boxes> may not be checked and thus won't have a value. I thought I'd tested with> just radio buttons (which share a field name and should work better) but now> I'm not sure.It will ignore any checkboxes that aren't checked, because it doesn't evensee them. In other words if a check box isn't check it never gets sent as aformvariable and therefore is never checked and is never sent back. Radiobuttons I would think if neither is checked then again you would run intothe same problem. To solve the issue for the radio buttons set a hiddenvalue for the radio button you wish to test to null. ieMake sure it is at the end of your form. Then if neither radio button ischecked and the form is submitted the hidden value takes presidence and isof course blank and rejected by the script.You can do the same thing with the checkbox, but I am not sure why you wouldother than to force them to check it. Like I agree with this section.> Thanks. I'm including Bob's message below. BTW, I hadn't realized that> WebDNA was so sensitive to extra CRs and line breaks... it flat out didn't> work until I got rid of many of the added breaks in the code below.This may have been a problem with email putting in returns where theyshouldn't be. Otherwise its not really sensitive at all.-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Associated Messages, from the most recent to the oldest:
I think I can answer these.> 1) If I limit the form to simple text inputs, it works as advertised and> kicks the user back to the form page if they've not filled in a field with> -rqf on the end, or entered an improper email address. However, it isn't> reporting the # of errors nor is it retaining the values of the> formvariables when it returns to the form.mmmm This sounds odd. There is a return in [mailerror] below, other thanthat it should work. What url is it redirecting to? Copy and paste the errordriven url & send it in and that should pretty much tell the story.> [math show=f]error=0[/math][math show=F]mailerror=0[/math][math> show=f]notest=0[/math]> [text]testvar=999999999999[/text]> [formvariables name=rqf&exact=F]> [hideif [name]=template]> [listwords words=[testvar]&delimiters=,][showif [name]=[word]][math> show=f]notest=1[/math][/showif][/listwords]> [text]testvar=[testvar],[name][/text]> [hideif [notest]=1]> [showif [url][value][/url]=][math show=F]error=error+1[/math][/showif]> [showif [name]^email][hideif [value]^@][math> show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][hideif> [GetChars start=2&end=4&from=end][value][/GetChars]^.][math> show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][showif> [url][value][/URL]^%20][math show=F]error=error+1[/math][/showif][/showif]> [/hideif][showif [notest]=1][math show=f]notest=0[/math][/showif]> [/hideif]> [/formvariables]> > [!]Redirect with the number of errors an all of the formvariables intact[/!]> > [showif [math]error[/math]>0]> [redirect [listwords Words=[referrer]&delimiters=?][showif> [index]=1][word][/showif][/listwords]?error=[math]error[/math]&mailerror=[ma> ilerror][formvariables][hideif> [name]=template]&[name]=[url][value][/url][/hideif][/formvariables]]> [/showif]> [!]End ValidationChecker routine[/!]> 2) The form also normally has check boxes and radio buttons. It doesn't seem> to work correctly with these, even if the form fields don't include an> -rqf in the name. I don't think it likes the fact that some check boxes> may not be checked and thus won't have a value. I thought I'd tested with> just radio buttons (which share a field name and should work better) but now> I'm not sure.It will ignore any checkboxes that aren't checked, because it doesn't evensee them. In other words if a check box isn't check it never gets sent as aformvariable and therefore is never checked and is never sent back. Radiobuttons I would think if neither is checked then again you would run intothe same problem. To solve the issue for the radio buttons set a hiddenvalue for the radio button you wish to test to null. ieMake sure it is at the end of your form. Then if neither radio button ischecked and the form is submitted the hidden value takes presidence and isof course blank and rejected by the script.You can do the same thing with the checkbox, but I am not sure why you wouldother than to force them to check it. Like I agree with this section.> Thanks. I'm including Bob's message below. BTW, I hadn't realized that> WebDNA was so sensitive to extra CRs and line breaks... it flat out didn't> work until I got rid of many of the added breaks in the code below.This may have been a problem with email putting in returns where theyshouldn't be. Otherwise its not really sensitive at all.-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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 Bob Minor
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...