We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1887
    • 50 Posts
    I have a check box on my contact for to ask whether I can keep their details for future mailing. It is defaulted to on, but I am getting validation errors of "Keep Contact Details » Incorrect value"

    Can you spot what is going wrong and how do I disable validation on a check box?

    The form code has:

    <p><input type="checkbox" name="keepdetails" id="cfKeepDetails"  checked="checked" eform="Keep Contact Details::0" />
    <label for="cfKeepDetails"> Uncheck this box if you do not want us to keep your contact details on record.</label>


    regards

    James
      • 7231
      • 4,205 Posts
      I think that you need to include the value parameter (value="1") in order to get the validation.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 1887
        • 50 Posts
        Works a treat - thanks