Ultimate guide to implementing "Agree with Terms of Use" checkbox
Last Post 11-14-2012 05:58 AM by Chad Nash. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
Eugene BeliankaUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
10-04-2012 01:17 AM
    Hi.

    I'm trying to populate Datasprings Dynamic Registration module with "Agree with Terms of Use" checkbox. From this forum (btw, forum search output only posts till 2010) and my thoughts I found such possible variants:

    1) simply write "By submitting, I agree to the >>Terms of Use<<"
    i.e. not obliged user to make any action connected with awareness of ToU

    2) put checkbox near "I agree to the >>Terms of Use<<" and make this checkbox required.

    2.1) But now I can't do checkbox required! Why?

    2.2) Alternative is described here:
    https://www.datasprings.com/dnn-modules/dynamic-registration/can-the-save-button-be-conditional/#4406

    if ( $(checkbox)) 

    showhtml('SaveForm') 

    else 

    hidehtml('SaveForm') 
    This is great way, BUT even in Datasprings example (http://www.datasprings.com/products...tration-6) use could stay checkbox unchecked and simply press [Enter] key to submit form!
    How to avoid it?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    10-04-2012 07:39 AM
    Hi Eugene - There are a few other things that you can do here. These include...

    1. You can use Server side validation
    2. You can use SQL Validation
    3. You can go into module configuration and general settings... within that area I believe there is a specific setting that "Enter key forces form submission" and you probably do not want that to be enabled.

    Let me know if this helps.

    Thanks,

    Chad
    Eugene BeliankaUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    10-04-2012 11:48 PM
    Hi Chad,

    Currently ""Enter key forces form submission" " checkbox is unchecked and this doesn't help me (either it checked or unchecked in all browsers Chrome, Firwfox, Opera, IE) : [Enter] key press causes forem submit!

    1. You can use Server side validation 
    2. You can use SQL Validation 

    Chad, please, can you say here what parameters from QUESTION VALIDATION http://imageshack.us/a/img829/4272/image009x.png area (I suppose you mean this under "Server side validation") can I use for this purpose and how?

    Empirically I found that "Required field" doesn't validate checkbox.

    Empirically I found that "Compare field" also doesn't work - I've created always checked checkbox and wanted to compare my "Agree with Terms of Use" checkbox with it but it wasn't available in "Compare field" drop down.

    May be I can use "Regular expression" or custom SQL, but how?
    Eugene BeliankaUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    11-13-2012 05:06 AM
    any suggestions?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    11-14-2012 05:58 AM
    Hi Eugene - If these other clients side validators are not firing off this tells me there is probably some JavaScript errors that you have which are causing the issue. Can you enable "FireBug" for FireFox and let me know if any errors are popping up? Is this on a URL that you can post so I can duplicate/replicate it? You might also open a support ticket and provide us with credentials to the website so we can check it out.

    Thanks,

    -Chad


    ---
  • 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