AAA, NAC, Guest Access & BYOD

How to change the "required field" text in a weblogin or a self registration page of ClearPass Guest
Requirement:

How to change the "required field" text in a weblogin or a self registration page of ClearPass Guest?

 

We can change the above mentioned "required field" text to any  other required text by using the below mentioned script



Solution:

We can change the "required field" text to any  other required text by using the below mentioned script

 

Script:

<script type="text/javascript" charset="UTF-8" language="JavaScript">{literal}
addLoadEvent(function () {
var spans = document.getElementsByTagName("p");
for (i = 0; i < spans.length; i++){
  if (spans[i].className == "nwaRequiredField"){
    spans[i].innerHTML = '<span class="nwaImportant nwaRequiredField">*</span> <small>enter your text</small>';
  }
}
});
{/literal}</script>

 



Configuration:

Paste the mentioned script in footer html section of any weblogin page or a registration page and save the changes.

 

 



Verification

We would start  seeing the configured text  instead of "required text" as below screenshot.

Version history
Revision #:
2 of 2
Last update:
‎09-08-2016 06:28 AM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.