We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6780
    • 2 Posts
    Hi Everybody.

    eForm refuses to validate a sessionvar.

    This is my Snippetcall:
    !eForm? &formid=`clubInputForm`  &debug=`1` &sessionVars=`owner_id` &noemail="1" &tpl=`clubInputTpl` &thankyou=`ClubInputReport` &eFormOnBeforeMailSent=`eForm2clubdb`  !]



    The field in the formtemplate

    <input type="hidden" name="owner_id" value="[+owner_id+]" eform="Owner Id:::" />


    The owner Id practically the same with the webInternalKey.

    Anyway , eForm refuses to validate this field:

    Validation and Debugging Message:

    Some errors were detected in your form:
    Owner Id » Incorrect value


    ’Owner Id’ Failed using rule: #VALUE , (input=2)


    I even followed some tips changing the Validation rules like
    <input type="hidden" name="owner_id" value="[+owner_id+]" eform="Owner Id:integer::#RANGE 0 - 99999" />


    Also tried with #REGEX , allowing practically any value.

    it just refuses to validate it.

    Am i missing something ?
    any other ideas ?

    P.S.: Using eFORM 1.4.4 with 0.96RC3

      • 30223
      • 1,010 Posts
      Set &postOverides=`1` and set eform="Owner Id:integer:1:Error Message:#RANGE 0 - 99999" />. See if that helps.

      &postOverides makes sure that the posted value is used and your validation rules were in the wrong place. They should be the fifth and last item in the eform attribute.
        • 6780
        • 2 Posts
        doh.


        That was the Problem.
        Thanks alot smiley