Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    I looked thru all the other threads and cant figure out how to confirm email addresses. Im using "Sample Contact Form" as provided in the templates:

    http://app.formassembly.com/form-builder3/?data[Form][id]=72&template=1

    I added confirm id field to the form and went to the edit tab> then to the advance tab> and entered this:

    <script type="text/javascript">
    var fieldId = "enter here the id of the first field";
    var confirmFieldId = "enter here the id of the confirmation field";
    wFORMS.behaviors.validation.messages['isIdentical'] = "The values don't match.";

    // leave the rest as is.
    wFORMS.behaviors.validation.rules['isIdentical'] = { selector: "#"+fieldId,
    check: function(element) {
    var c=document.getElementById(confirmFieldId);
    if(element.value!=c.value) {
    return false;
    }
    return true;
    }};
    </script>

    I cant seem to get it to work. PLEASE HELP!!!
    • CommentAuthordbuschho
    • CommentTimeJan 3rd 2010
     
    Hello,

    The code you listed above needs to go into your Custom Code block, that is in the advanced tab of your form's root element (the form title). Click on the form's title in the formbuilder, then go to 'advanced', custom code block and paste in:

    <script type="text/javascript">
    var fieldId = "enter here the id of the first field";
    var confirmFieldId = "enter here the id of the confirmation field";
    wFORMS.behaviors.validation.messages['isIdentical'] = "The values don't match.";

    // leave the rest as is.
    wFORMS.behaviors.validation.rules['isIdentical'] = { selector: "#"+fieldId,
    check: function(element) {
    var c=document.getElementById(confirmFieldId);
    if(element.value!=c.value) {
    return false;
    }
    return true;
    }};
    </script>

    Then go back to this code and replace the strings:
    "enter here the id of the first field"
    and
    "enter here the id of the confirmation field"
    with the values for the fields found in your html source code, which might be something like:
    "tfa_Email"
    "tfa_ConfirmYourEma"

    Happy to help further,
    FA Support.
  2.  
    I added this code to my form to confirm that the user had entered the same e-mail address, but nothing seems to happen. Does this code only get invoked if I have a professional plan with connectors configured?

    My form is http://www.tfaforms.com/236648

    Thanks
    • CommentAuthordbuschho
    • CommentTimeMar 19th 2012
     
    Hello Jordan,

    You need to use the name parameter / id ( tfa_XXXXXX) for the fields you wish to confirm, not the calculation variables.

    So, for yours if you look in the html source, or at:
    https://app.formassembly.com/forms/prefill_info/236648

    you should see that your ids are tfa_260 and tfa_460 I believe.

    Drew
  3.  
    Thanks, that works perfectly.

    Jordan