AAA, NAC, Guest Access & BYOD

How to block Guest users from registering an account by specifying own email as sponsor email

Aruba Employee

Clearpass Guest Self Registration setup


By using the Ajax Submit feature in Clearpass Guest, we can validate user entered data for email, sponsor email field and show an alert to enter a valid sponsor email address.



Edit the self registration -> Register Page -> Forms -> Submit field.

Enabled the option to show advanced properties.

Enter the text 'RegisterSubmit' in AJAX Submit field and save changes.

Edit the self registration -> Register Page -> Footer HTML, enter the following script and save changes.


var fieldName1 ="sponsor_email";
var fieldName2 ="email";
function RegisterSubmit(form_name) {

var sponsor_email = document.forms[form_name][fieldName1].value;
var email = document.forms[form_name][fieldName2].value;
   if (sponsor_email == email ) {
   declareInvalid(form_name, 'Please enter a valid sponsor email');
   return false;
    return true; // Proceed to regular

function declareInvalid(form_name, ruleBroken) {
  alert("not a valid sponsor email: " + ruleBroken);
  var tidField = document.forms[form_name][fieldName1]; = "2px solid red";





Perform a test self registration by entering same email and sponsor email to test the alert:



Version history
Revision #:
2 of 2
Last update:
‎05-12-2016 07:22 PM
Updated by:
Labels (1)
Search Airheads
Showing results for 
Search instead for 
Did you mean: