<?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>question Re: How to hide back button in form? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877163#M1098599</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be achieved with 2 steps as outlined below, however, I would like to ask what you're trying to achieve by removing this? What happens if someone uses the back button in the browser itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question directly however:&lt;/P&gt;&lt;P&gt;- Create below onLoad client script&lt;/P&gt;&lt;P&gt;- Make sure the &lt;STRONG&gt;'isolate script'&lt;/STRONG&gt; column for this script is set to &lt;STRONG&gt;false&lt;/STRONG&gt; (Default is set to true to prevent DOM manipulation) - See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To help others (or for me to help you more directly), please mark this response correct by clicking on&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;and/or&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Robbie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function onLoad() {
    // This hides the back button
	document.getElementsByClassName("btn btn-default icon-chevron-left navbar-btn")[0].style.display="none"; 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Isolate script' set to false. (see below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-26 at 09.17.04.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/342286iEA8E1B41F760A6E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-26 at 09.17.04.png" alt="Screenshot 2024-03-26 at 09.17.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 09:22:41 GMT</pubDate>
    <dc:creator>Robbie</dc:creator>
    <dc:date>2024-03-26T09:22:41Z</dc:date>
    <item>
      <title>How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877092#M1098580</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to disable the Back button in Service Now.&lt;/P&gt;&lt;P&gt;Did anyone worked on this. Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sadique&lt;/P&gt;&lt;P&gt;Note:- I have already tried some methods/codes that is available in community but not working.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 08:35:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877092#M1098580</guid>
      <dc:creator>Sadique Kabir</dc:creator>
      <dc:date>2024-03-26T08:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877105#M1098582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to disable back button on the form. For that, run the below&amp;nbsp;&lt;STRONG&gt;Client Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;function onLoad()&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; &amp;nbsp; document.getElementsByClassName("btn btn-default icon-chevron-left navbar-btn")[0].style.display="none";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Apply the above script on table.&lt;/P&gt;&lt;P&gt;Now, you can see there is no back button on the form.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RamSingh_0-1711442053440.jpeg" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/342270i48DAAAD633C47EBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RamSingh_0-1711442053440.jpeg" alt="RamSingh_0-1711442053440.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/administer/navigation-and-ui/concept/c_NavigationStack.html" target="_blank" rel="noopener"&gt;https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/administer/navigation-and-ui/concept/c_NavigationStack.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark reply as &lt;STRONG&gt;Helpful/Correct&lt;/STRONG&gt;, if applicable. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 08:38:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877105#M1098582</guid>
      <dc:creator>Service_RNow</dc:creator>
      <dc:date>2024-03-26T08:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877123#M1098587</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/361158"&gt;@Service_RNow&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I tried the above solution provided by you but its not working...&lt;/P&gt;&lt;P&gt;but thank you...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 08:52:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877123#M1098587</guid>
      <dc:creator>Sadique Kabir</dc:creator>
      <dc:date>2024-03-26T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877152#M1098594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no solution, but why you want to remove this, it is a good part and enhance user experience.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:12:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877152#M1098594</guid>
      <dc:creator>Dr Atul G- LNG</dc:creator>
      <dc:date>2024-03-26T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877161#M1098598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/174084"&gt;@Dr Atul G- LNG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Actually I got a requirement in service portal project where browser back button is landing upon list view...&lt;BR /&gt;and this back button landing upon self service...&lt;BR /&gt;that's why I wanna remove this button...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:21:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877161#M1098598</guid>
      <dc:creator>Sadique Kabir</dc:creator>
      <dc:date>2024-03-26T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877163#M1098599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be achieved with 2 steps as outlined below, however, I would like to ask what you're trying to achieve by removing this? What happens if someone uses the back button in the browser itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question directly however:&lt;/P&gt;&lt;P&gt;- Create below onLoad client script&lt;/P&gt;&lt;P&gt;- Make sure the &lt;STRONG&gt;'isolate script'&lt;/STRONG&gt; column for this script is set to &lt;STRONG&gt;false&lt;/STRONG&gt; (Default is set to true to prevent DOM manipulation) - See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To help others (or for me to help you more directly), please mark this response correct by clicking on&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;and/or&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Robbie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function onLoad() {
    // This hides the back button
	document.getElementsByClassName("btn btn-default icon-chevron-left navbar-btn")[0].style.display="none"; 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Isolate script' set to false. (see below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-26 at 09.17.04.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/342286iEA8E1B41F760A6E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-26 at 09.17.04.png" alt="Screenshot 2024-03-26 at 09.17.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:22:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877163#M1098599</guid>
      <dc:creator>Robbie</dc:creator>
      <dc:date>2024-03-26T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877167#M1098601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Got your point, but the behaviour of this back button is actually wired some time. If you open many tabs it pick from history and take to back. I had very bad experience with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/57655"&gt;@Robbie&lt;/a&gt;&amp;nbsp; solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:25:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877167#M1098601</guid>
      <dc:creator>Dr Atul G- LNG</dc:creator>
      <dc:date>2024-03-26T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877177#M1098604</link>
      <description>&lt;P&gt;Please see my response&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/220283"&gt;@Sadique Kabir&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I have provided a tried and tested solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/174084"&gt;@Dr Atul G- LNG&lt;/a&gt;&amp;nbsp;for highlighting this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;To help others (or for me to help you more directly), please mark this response correct by clicking on&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;and/or&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks, Robbie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:33:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877177#M1098604</guid>
      <dc:creator>Robbie</dc:creator>
      <dc:date>2024-03-26T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877209#M1098609</link>
      <description>&lt;P&gt;Thank You&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/57655"&gt;@Robbie&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Your Solution is working...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:51:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/2877209#M1098609</guid>
      <dc:creator>Sadique Kabir</dc:creator>
      <dc:date>2024-03-26T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/3110259#M1160828</link>
      <description>&lt;P&gt;Hi Robbie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This script is not working on records which pertains to a scoped application. It works well in forms like Incident, problem etc., Do you know how to make this work on forms which are related to applications other than global?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Indirakumar&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 17:13:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/3110259#M1160828</guid>
      <dc:creator>GG_Indirakumar</dc:creator>
      <dc:date>2024-11-21T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide back button in form?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/3110289#M1160836</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/570091"&gt;@GG_Indirakumar&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll see the above script is written specifically for the &lt;STRONG&gt;'problem' &lt;/STRONG&gt;table. Have you ensured upon creating the script you've selected the scoped table for which you want to hide the back button. For example, if this was for CSM (Scoped Customer Service Management app), the table field would need to reflect the 'sn_customerservice_case' table.&lt;/P&gt;
&lt;P&gt;(You may also need to update the 'Application' field depending on the Scope and testing)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To help others (or for me to help you more directly), please mark this response correct by clicking on&amp;nbsp;&lt;STRONG&gt;Accept as Solution&amp;nbsp;and/or&amp;nbsp;Kudos.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;  Thanks, Robbie&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 17:34:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-back-button-in-form/m-p/3110289#M1160836</guid>
      <dc:creator>Robbie</dc:creator>
      <dc:date>2024-11-21T17:34:37Z</dc:date>
    </item>
  </channel>
</rss>

