cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3056
Views
0
Helpful
0
Comments
Jason Kunst
Cisco Employee
Cisco Employee

Symptoms

I would like to present the MAC address for a device on-boarding flow as a QR code on support page.

 

qrcode2.png

Diagnosis

This can be done utilizing a custom .js script embedded into the support page. 

Solution

For general information on portal customization please reference the How To: ISE Web Portal Customization Options. Keep in mind if you are using your portal for other languages you will need to do the same for each of the portal languages you anticipate being used. 

 

  1. Upload the attached js file in the Work Centers >Guest Access > Custom Portal Files page.
  2. Go to Portal Customization > Support Information page > Optional Content 1
  3. You should see the uploaded file in the list as seen in the below screenshot.

qrcode1.png 

  1. Select the js file by clicking on it.
  2. Toggle the HTML Source to open the field where you will be able to see the script added in script tag like below.

<script src="customFiles/qrcode.js" type="text/javascript"></script>

 

  1. Along with the qrcode.js file add the below script.

 

 <script type="text/javascript">

setTimeout(function() {

var macAddress = $('[id="MAC Address:"] > .content-text');

$('#qrcode').insertAfter(macAddress);

var qrcode = new QRCode(document.getElementById("qrcode"), {

    width : 100,

    height : 100

});

function makeCode () {

    qrcode.makeCode("00:40:FE:2A:49:E0");

}

makeCode();

}, 2000);

</script>

<div id="qrcode" style="width:100px; height:110px; margin-top:15px;"></div>

 

  1. Toggle the HTML source to close the field.
  2. Save the portal and try it out
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: