Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Compare Field Validation
Last Post 10-16-2012 06:57 AM by Chad Nash. 14 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
t-boneUser is Offline
river guide
river guide
Posts:77
Avatar

--
08-02-2012 05:16 AM

    Using Dynamic Forms 4.0.11.16442

    Trying to make a user enter their email.. then confirm it in a 2nd email field. I assume all you have to do is check "Enable Compare Validator", then pick the "Confirm Field" and enter a validation text/error message. However, when i do this it never compares properly.. even when i copy/paste the email in the confirm email field.


    Any help is appreciated.

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    08-02-2012 08:18 AM
    Hi t-bone,

    You might be doing this in reverse. You need to apply the setting to the Confirm Email field and set the comparison to the main Email field. Please try that and let me know if you still have problems.

    If you got that right, can you please check in Admin, Event Viewer if you see any related related errors?

    Thanks!

    Candace
    t-boneUser is Offline
    river guide
    river guide
    Posts:77
    Avatar

    --
    08-02-2012 08:41 AM

    Thanks for the reply Candace!

    That's how I had it set up.. the Confirm has the Compare Validator against the main email field.

    I checked the event log and don't see any errors/events related to the page i'm working on.

    Any ideas?

    t-boneUser is Offline
    river guide
    river guide
    Posts:77
    Avatar

    --
    08-07-2012 09:42 AM
    Still no luck..
    NeilUser is Offline
    skipping stones
    skipping stones
    Posts:6
    Avatar

    --
    10-09-2012 04:29 AM
    Hi, I also have this problem. In fact I have two instances on different forms. In one the validation doesn't  work and the form is allowed to be submitted and in the other it keeps prompting that the fields do not match when n reality they are identical.
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    10-09-2012 10:36 AM
    Hi Neil,

    Can you please tell us your exact module version and you DNN version? Thanks!

    Candace
    t-boneUser is Offline
    river guide
    river guide
    Posts:77
    Avatar

    --
    10-09-2012 10:41 AM

    I never figured out the problem Neil.. Good luck!! Post back if they get you a solution.

    NeilUser is Offline
    skipping stones
    skipping stones
    Posts:6
    Avatar

    --
    10-10-2012 01:57 AM
    Hi Candace, 

    We have two sites in use one on DNN version 5.06.07 and I believe the other to be on 5.06.08.
    In both instances the DF module is version 4.10.4.

    I now have the validation half working as the "Enable ClientSide Validation" was not previously checked. This now flags a failed comparison, but when the field is amended to match the email field it still reports a comparison error.

    Regards

    Neil
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    10-10-2012 03:16 AM
    Hi Neil,

    So you have an email field and the compare email field, right? On the compare email field, you have it set for BOTH required field and compare to email address?

    Can you please remove the required field setting and let me know if it works for you?

    T-bone, would you please try that, too, and let me know what happens?

    Thanks!
    Candace
    NeilUser is Offline
    skipping stones
    skipping stones
    Posts:6
    Avatar

    --
    10-10-2012 04:18 AM
    Hi Candace,

    That hasn't affected it. It still doesn't rejects the two fields as matching.

    Neil
    NeilUser is Offline
    skipping stones
    skipping stones
    Posts:6
    Avatar

    --
    10-12-2012 04:01 AM
    I have tried everything I can think of to get this working.

    I removed the skin - no change.
    I tried two different fields for comparing - no change.
    I created a new form on a different page with just 2 questions - bingo it worked.
    I copied all module and question settings to the existing form - no change.
    I removed the DNN Sections/HTML DIvs panels I was using - bingo it worked.

    The trouble is I need to use the panels.

    Can someone have a look at this for me. I have a site to put Live next week.

    Thx
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    10-12-2012 04:31 AM
    Hi Neil,

    Thanks for the all the testing. I'll bring this up to Chad for review. However, you should be able to overrride that with a client side event while we're looking at this specific iissue. Our tech support, Ryan, will be in touch with you with additional information. Thanks!

    Candace
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-12-2012 06:05 AM
    Hello Neil,

    Sorry to hear that we need to incorporate a JavaScript workaround.

    Here's the instructions:

    Prerequisites:
    * You have 2 Question with the following short field names:
    - EmailAddress
    - ConfirmEmaillAddress

    * Make sure EmailAddress and ConfirmEmailAddress are Required Fields by going to Manage Question -> Question Validation and enabling Required Field validation.

    Step 1:
    Add an HTML Span tag to the Footer Template of the ConfirmEmailAddress Question. Make sure you give this Span tag a unique ID. For instance: id="ConfirmErrorMessage"

    Step 2:
    Add this JavaScript to the Client Side section inside of the ConfirmEmailAddress -> Advanced Question Options:
    ------------------------------------------------------------------------
    var Email = $(EmailAddress);
    var ConfirmEmail = $(ConfirmEmailAddress);

    if(Email != ConfirmEmail)
    {
    document.getElementById('ConfirmErrorMessage').innerHTML = 'Emails Do Not Match.';
    $(ConfirmEmailAddress) = '';
    }
    else
    {
    document.getElementById('ConfirmErrorMessage').innerHTML = '';
    }

    ------------------------------------------------------------------------

    This should do it. All you need to do is conform this example to your current form.

    Please let me know if this assists you.

    Thanks,

    Ryan
    NeilUser is Offline
    skipping stones
    skipping stones
    Posts:6
    Avatar

    --
    10-16-2012 01:40 AM
    Hi Ryan,

    That has partially worked, however it does not stop the post of a non-matching email should the user press enter. Please can you add something that disables the post until the fields match.

    thanks

    Neil
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-16-2012 06:57 AM
    Hi guys - I just wanted to follow up on this... This has always been a really dumb bug (in my opinion) within ASP.NET validation. Apparently the ASP.NET compare validator (which is what our module uses) there is not a way to compare a blank string so they suggest you make it required as well. This has been a problem for a while now and is really annoying.

    Review this thread for more details or google "ASP.NET Compare validation empty string" and you will see several other threads related to this:
    http://forums.asp.net/t/1521264.aspx/1

    Thanks,

    -Chad
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi