Results 1 to 4 of 4

Thread: 10 Part Validation (see for more details)

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Question 10 Part Validation (see for more details)

    I have a terms of service document in my website, i know like only 1% of people read them so inorder for people to read them i was wondering if it was possible if I could have a link or button or something that when 10 out of 10 of the buttons have been pressed that they reveal a hidden *which is inactive when hidden* button. When all the validation buttons are clicked the form becomes visible and active and is able to send the user to the form... I think that you might have to click all the buttons in order...

    I don't think that I've seen this with Javascript, but I think that it could be done using serverscript, but I wanted to ask if anyone here has seen anything like this.

    I bet it would be a bunch of if statements like:
    Code:
    If (button clicked, activate button2) else (do nothing)
    I know that isn't real javascript and I really don't know javascript that much. Thanks all!

  2. #2
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    You could do add onclick="btnsClicked += 1; checkBtns" to all your buttons, and then add
    Code:
    var btnsClicked = 0;
    var checkBtns = function () {
    if (btnsClicked == !!!THE NUMBER OF BUTTONS!!!) {
    //Do stuff
    }
    }
    and put that in a script element in the head, it should work.

  3. #3
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    how do i get it to show the final button????? i already tried document.write function...

  4. #4
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Oh, sorry my bad, I got it I messed up with my document write, i put write.document. my bad...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •