cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
789
Views
0
Helpful
4
Replies

WEB-AUTH Splash Page

Jay233
Level 1
Level 1

Hi All,

I've got a very basic web authentication page working but need to include a CHECK BOX to verify a user has read the T&C's. Got the checkbox to display but need the script code to disable (when not checked) either username/password input or the submit button. Any of you bright guy's managed to do this or anything similar.

Web splash attached.

Thank for any replies,

Jay  

1 Accepted Solution

Accepted Solutions

Jay233
Level 1
Level 1

Guy's sorted it

if(!document.getElementById('agree').checked){

     alert('Please agree to the terms and conditions.');

     return false;

   }else{

   var link = document.location.href;

      var searchString = "redirect=";

      var equalIndex = link.indexOf(searchString);

      var redirectUrl = ""; if(!document.getElementById('agree').checked){
     alert('Please agree to the terms and conditions.');
     return false;
   }else{
   var link = document.location.href;
      var searchString = "redirect=";
      var equalIndex = link.indexOf(searchString);
      var redirectUrl = "";

Thanks anyway!

View solution in original post

4 Replies 4

Jay233
Level 1
Level 1

Guy's sorted it

if(!document.getElementById('agree').checked){

     alert('Please agree to the terms and conditions.');

     return false;

   }else{

   var link = document.location.href;

      var searchString = "redirect=";

      var equalIndex = link.indexOf(searchString);

      var redirectUrl = ""; if(!document.getElementById('agree').checked){
     alert('Please agree to the terms and conditions.');
     return false;
   }else{
   var link = document.location.href;
      var searchString = "redirect=";
      var equalIndex = link.indexOf(searchString);
      var redirectUrl = "";

Thanks anyway!

Good job... can you post the html so others can actually see what you have done?

Thanks,

Scott

Help out other by using the rating system and marking answered questions as "Answered"

-Scott
*** Please rate helpful posts ***

No problem done!

Cheers,

Jason

Thanks Jason!

Sent from Cisco Technical Support iPhone App

-Scott
*** Please rate helpful posts ***
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: