We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24719
    • 194 Posts
    hi,

    no validation is happening in 1.4.4. i’ve got some fields set up as (this is an excerpt - the form id is set correctly, etc):

                    <p>
                    <label for="addr1" >Address line 1</label>
                    <input type="text" id="addr1" name="addr1" [+disabled+] value="[+addr1+]" size="20" eform="Address 1:string:1:Please enter the first line of your address:#REGEX /^[0-9\.a-zA-Z\- ]+$/"/>
                    </p>  
                    
                    <p>
                    <label for="addr2" >Address line 2</label>
                    <input type="text" id="addr2" name="addr2" [+disabled+] value="[+addr2+]" size="20"  eform="Address 2:string:0:The second line of your address appears to be invalid:#REGEX /^[0-9a-zA-Z\-\. ]+$/"/>
                    </p>  
                    
                    <p>
                    <label for="addr3" >Address Line 3</label>
                    <input type="text" id="addr3" name="addr3" [+disabled+] value="[+addr3+]" size="20" eform="Suburb/Town:string:0:Your suburb/town appears to be invalid:#REGEX /^[0-9a-zA-Z\-\. ]+$/"/>
                    </p>  
                    
                    <p>
                    <label for="city" >Town/City</label>
                    <input type="text" id="city" name="city" value="[+city+]" [+disabled+] size="20" eform="City:string:1:Your city appears to be invalid:#REGEX /^[0-9a-zA-Z\-\. ]+$/"/>
                    </p>  


    with a snippet call like:

    [[db2eForm_PropLocation]]
    [[eForm2db_PropLocation]]
    [[eForm? &tpl=`PropLocation` &formid=`PropLocationFrm` &eFormOnBeforeFormParse=`db2eForm_PropLocation` &noemail=`1` &eFormOnValidate=`eForm2db_PropLocation`]]


    but eform 1.4.4 doesn’t enforce that the fields have entries. it worked in 1.4.3...

    have you any idea why it might be like this?

    thanks
      • 30223
      • 1,010 Posts
      Besides that there are some fields which are set as not required, I don’t have enough info to be able to see what might be happening. Have you tried to set &debug=3? in the snippet call? This should give you an idea what’s happening at each step, including a print of the form source after it has been parsed.

        • 24719
        • 194 Posts
        hmm. i tried debug=3, but couldn’t track down the problem. I’ve worked around it this time but will try to look more in-depth if i find the problem again.

        thanks though