<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can I remove the Cancel button from the Self-Registration Portal Page? in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3854750#M473181</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a custom Guest Hotspot design which uses a &lt;A href="https://community.cisco.com/t5/security-documents/hotspot-portal-with-information-collection/ta-p/3638869" target="_self"&gt;clever magic trick as mentioned here in this posting from Jason&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need one last hack to this page to make it perfect: I want to remove the Cancel button because it serves no purpose (if user wants to abort then they will close the browser - pressing Cancel seems absurd to me).&amp;nbsp; But more importantly, when I do click Cancel, then my magic trick is revealed to the visitor (i.e. ISE returns to the Main Login page - which is what I don't want them to see).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cancel.PNG" style="width: 384px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36565i602F368B1CC96C31/image-size/large?v=v2&amp;amp;px=999" role="button" title="cancel.PNG" alt="cancel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the following JQuery code on the Registration page (code inserted into optional content 2 in html mode)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;
     jQuery(function(){
       jQuery('#ui_self_reg_cancel_button').css('display','none');
       return;
     });
&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;Doesn't work though.&amp;nbsp; Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 04:33:52 GMT</pubDate>
    <dc:creator>Arne Bier</dc:creator>
    <dc:date>2019-05-13T04:33:52Z</dc:date>
    <item>
      <title>Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3854750#M473181</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a custom Guest Hotspot design which uses a &lt;A href="https://community.cisco.com/t5/security-documents/hotspot-portal-with-information-collection/ta-p/3638869" target="_self"&gt;clever magic trick as mentioned here in this posting from Jason&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need one last hack to this page to make it perfect: I want to remove the Cancel button because it serves no purpose (if user wants to abort then they will close the browser - pressing Cancel seems absurd to me).&amp;nbsp; But more importantly, when I do click Cancel, then my magic trick is revealed to the visitor (i.e. ISE returns to the Main Login page - which is what I don't want them to see).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cancel.PNG" style="width: 384px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36565i602F368B1CC96C31/image-size/large?v=v2&amp;amp;px=999" role="button" title="cancel.PNG" alt="cancel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the following JQuery code on the Registration page (code inserted into optional content 2 in html mode)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;
     jQuery(function(){
       jQuery('#ui_self_reg_cancel_button').css('display','none');
       return;
     });
&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;Doesn't work though.&amp;nbsp; Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 04:33:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3854750#M473181</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2019-05-13T04:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855186#M473183</link>
      <description>&lt;P&gt;I am not an expert on Java script but I can hack my way through it using examples from other people.&amp;nbsp; So let's see how this button is referenced.&amp;nbsp; Right click and inspect element:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 398px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36593i287FC36C98189A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay now find the ID reference:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 926px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36594i20460442AEC62201/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay now we know the ID is ui_self_reg_cancel_button, use Jason's code as an example and add this to optional content 2:&lt;/P&gt;
&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;$('#ui_self_reg_cancel_button').hide();&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Boom no more cancel button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 528px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36598i54980004719BFFDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 15:34:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855186#M473183</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2019-05-13T15:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855514#M473186</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/192011"&gt;@paul&lt;/a&gt;&amp;nbsp;- I am in the same boat as you - I have zero web developer experience and hacking my way through it.&amp;nbsp; The inspector trick is a good one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example you gave works well on a standard Self Registered Portal Page!&amp;nbsp; But on my customised Portal Builder imported portal it doesn't work at all.&amp;nbsp; I already have two other pieces of JQuery running that hide the Login page (and jump to Self Registration automatically), and then finally on the success page I am hiding all the stuff I don't want the user to see.&amp;nbsp; That all works.&amp;nbsp; But I am unable to hide the Cancel button to finish off the job!&amp;nbsp; When I inspect the code I see differences in how PB constructs the page, versus how the vanilla ISE deployment builds the page.&amp;nbsp; In standard ISE deployment you can use the #&lt;SPAN&gt;ui_self_reg_cancel_button property&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Portal Builder code, there is no such property.&amp;nbsp; Perhaps that is the underlying reason&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Below is the Cancel button (inspected) as built by Portal Builder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now the question is:&amp;nbsp; does this object have methods like .hide() or somesuch?&amp;nbsp; This is where having an understanding of these frameworks would be useful, instead of me guessing my way around.&amp;nbsp; If anyone has a clue please let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PB-code.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/36632iB588E27868547DDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="PB-code.PNG" alt="PB-code.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel as if I am about to learn something revealing about all of this ... it's just the beginning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 22:31:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855514#M473186</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2019-05-13T22:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855517#M473189</link>
      <description>&lt;P&gt;Ouch, portal builder, great for making portals look nice but trying to do things outside of portal builder is always "fun".&amp;nbsp;&amp;nbsp; I think that stuff is all CSS language and I know you can do hides inside of it when you are programming it, but not sure how you could do the hide after the fact.&amp;nbsp; You have far exceeded my knowledge on this.&amp;nbsp; Hopefully some of the web programmers on the community forums will go "bah... child's play" and tell us how to do it.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 22:40:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855517#M473189</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2019-05-13T22:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855518#M473190</link>
      <description>The script posted doesn’t support portal builder unless stated it does.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2019 22:47:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855518#M473190</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-05-13T22:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I remove the Cancel button from the Self-Registration Portal Page?</title>
      <link>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855740#M473191</link>
      <description>&lt;P&gt;Through the power of Cisco and the Community, I got the answer I needed.&amp;nbsp; It now works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How the engineer came to this conclusion is still a mystery to me, but it has something to do with "finding the respective object in the DOM" - I think DOM is Document Object Model.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;
     jQuery(function(){
       jQuery('.t-button_cancel').css('display','none');
       return;
     });
&amp;lt;/script&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 09:32:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/can-i-remove-the-cancel-button-from-the-self-registration-portal/m-p/3855740#M473191</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2019-05-14T09:32:58Z</dc:date>
    </item>
  </channel>
</rss>

