<?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 Question popup modal message client script in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885516#M1101012</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to implement a popup modal message for a change request using client script. I am encountering an issue where a popup message won't stay. It disappears immediately after it pops up (see attached video).&amp;nbsp; Thank you&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="Jessica28_0-1712105763641.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344584i9F3FDECA8F2F4C33/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/344584i9F3FDECA8F2F4C33/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Jessica28_0-1712105763641.png" alt="Jessica28_0-1712105763641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 00:56:20 GMT</pubDate>
    <dc:creator>JessicaM6884345</dc:creator>
    <dc:date>2024-04-03T00:56:20Z</dc:date>
    <item>
      <title>Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885516#M1101012</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to implement a popup modal message for a change request using client script. I am encountering an issue where a popup message won't stay. It disappears immediately after it pops up (see attached video).&amp;nbsp; Thank you&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="Jessica28_0-1712105763641.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344584i9F3FDECA8F2F4C33/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/344584i9F3FDECA8F2F4C33/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Jessica28_0-1712105763641.png" alt="Jessica28_0-1712105763641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 00:56:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885516#M1101012</guid>
      <dc:creator>JessicaM6884345</dc:creator>
      <dc:date>2024-04-03T00:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885536#M1101017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/205137"&gt;@JessicaM6884345&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like you are using a UI Action to change the 'state' of the CR and using the onChange Client script to prompt a popup modal. It's likely that the UI Action is updating the record and refreshing the page which is clearing the modal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would have to add your script in the UI Action instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 02:00:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885536#M1101017</guid>
      <dc:creator>James Chun</dc:creator>
      <dc:date>2024-04-03T02:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885558#M1101024</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your assistance &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/594931"&gt;@James Chun&lt;/a&gt;&amp;nbsp;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I am trying to achieve is, when the state changes to 'Schedule', I want to display a popup message reminding the user to attach a form. Once they click on the 'OK' button in the popup, they can proceed using the UI action. The 'Schedule' UI action is an out-of-the-box function that I prefer not to modify. Do you have any suggestions on how to implement this using a popup modal message? It would provide a much nicer user experience.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is working fine, if I change it to an Alert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jessica28_0-1712114896932.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344599iF74C58CB54ACEAD1/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/344599iF74C58CB54ACEAD1/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Jessica28_0-1712114896932.png" alt="Jessica28_0-1712114896932.png" /&gt;&lt;/span&gt;&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="Jessica28_1-1712114992021.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/344600iC61CFD90F8E6E4F0/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/344600iC61CFD90F8E6E4F0/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="Jessica28_1-1712114992021.png" alt="Jessica28_1-1712114992021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 03:30:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2885558#M1101024</guid>
      <dc:creator>JessicaM6884345</dc:creator>
      <dc:date>2024-04-03T03:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2886924#M1101433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/205137"&gt;@JessicaM6884345&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What sort of form are we talking about here?&lt;/P&gt;&lt;P&gt;Is the attachment mandatory before a Change can be scheduled? If so, having a pop-up would not be enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Prompting the pop-up every time can be 'annoying' and degrade user experience because the user may have already attached a form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:22:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2886924#M1101433</guid>
      <dc:creator>James Chun</dc:creator>
      <dc:date>2024-04-03T20:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2888542#M1101921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/594931"&gt;@James Chun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I totally agree with you. It can become 'annoying' after a while. The popup is simply intended as a reminder. Do you have any suggestions on how we should handle this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 01:14:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2888542#M1101921</guid>
      <dc:creator>JessicaM6884345</dc:creator>
      <dc:date>2024-04-05T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question popup modal message client script</title>
      <link>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2890072#M1102344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/205137"&gt;@JessicaM6884345&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few options to explore, listed in the order of my preference (I do not recommend the last option):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rather than attaching a form, populate one of the Change request's fields (e.g. Justification) instead. Make the field mandatory&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;(Prerequisite - you must be using Change Model)&lt;/EM&gt; Use a Model State Transition Condition to validate if there is an attachment&lt;/LI&gt;&lt;LI&gt;Create a custom 'attachment' type field on the Change and set it mandatory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you elaborate on what this attachment/form is? It might open up other ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:04:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/question-popup-modal-message-client-script/m-p/2890072#M1102344</guid>
      <dc:creator>James Chun</dc:creator>
      <dc:date>2024-04-07T08:04:10Z</dc:date>
    </item>
  </channel>
</rss>

