<?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: URGENT: Record Producer to open in spModal pop-up window on click of a button. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668515#M325441</link>
    <description>&lt;P&gt;Hello check this &lt;A href="https://stackoverflow.com/questions/9276086/popup-window-to-return-data-to-parent-on-close" target="_blank"&gt;LINK&lt;/A&gt; it will be helpful to you in achieving your objective&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark my ANSWER as CORRECT and HELPFUL if it helps&lt;/P&gt;</description>
    <pubDate>Sun, 10 Jan 2021 16:39:38 GMT</pubDate>
    <dc:creator>JerryJ071847183</dc:creator>
    <dc:date>2021-01-10T16:39:38Z</dc:date>
    <item>
      <title>URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668512#M325438</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me how to use spModal to open a record producer inside a record producer. Here is the whole requirement.&lt;/P&gt;
&lt;P&gt;I have record producer with a button "Add locations". When a user clicks on the button currently it redirects to a different record producer to Add Location. But I want it to open in the same window as a pop-up rather than redirect.&lt;/P&gt;
&lt;P&gt;Here is the script for the button. This is where I want to add the pop-up instead of redirect to new window.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Widget HTML:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;a ng-href="{{options.href}}" target="_blank" class="btn btn-{{options.color}} m-b" ng-if="data.socialQAEnabled"&amp;gt;{{data.buttonMsg}}&amp;lt;/a&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Widget Client Controller:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function($element, $timeout) {
	/* widget controller */
	var c = this;
	$timeout(function() {
		$element.find('.btn').css("width", c.options.button_width);
	}, 100);
	console.log(c.options.button_width);
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Widget Server Script:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;data.buttonMsg = gs.getMessage(options.button_text || "Click Here");
data.socialQAEnabled = true;
if (options.href == "?id=sqanda_new_question") {
	data.socialQAEnabled = gs.getProperty('glide.sp.socialqa.enabled') === 'true';
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above widget is cloned from the OOB link-button widget.&lt;/P&gt;
&lt;P&gt;Also I don't want to create a custom form widget as it's easy to maintain producer logics and scripts inside the producer script/script include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:09:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668512#M325438</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T16:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668513#M325439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;update as this&lt;/P&gt;
&lt;P&gt;&amp;lt;a ng-href="{{options.href}}" target="&lt;STRONG&gt;_self&lt;/STRONG&gt;" class="btn btn-{{options.color}} m-b" ng-if="data.socialQAEnabled"&amp;gt;{{data.buttonMsg}}&amp;lt;/a&amp;gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:15:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668513#M325439</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-01-10T16:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668514#M325440</link>
      <description>&lt;P&gt;This is forcing me to leave the page. I want users to submit the pop-up record producer and after the page is destroyed, I have ref field with will pick the newly entered location.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tested with "target". After a long search I understood this can be achieved using spModal. Since I'm not a portal developer, I'm unable to add the&amp;nbsp;spModal functionality.&lt;/P&gt;
&lt;P&gt;Here is the &lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=5d95c7eddbd8dbc01dcaf3231f9619b9"&gt;link&lt;/A&gt; that I found, but unable to replicate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:27:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668514#M325440</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668515#M325441</link>
      <description>&lt;P&gt;Hello check this &lt;A href="https://stackoverflow.com/questions/9276086/popup-window-to-return-data-to-parent-on-close" target="_blank"&gt;LINK&lt;/A&gt; it will be helpful to you in achieving your objective&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark my ANSWER as CORRECT and HELPFUL if it helps&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:39:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668515#M325441</guid>
      <dc:creator>JerryJ071847183</dc:creator>
      <dc:date>2021-01-10T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668516#M325442</link>
      <description>&lt;P&gt;You can render html in spmodal but to open a url it will be difficult. You can use this url for some help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/13812962/modal-window-with-custom-url-in-angularjs"&gt;https://stackoverflow.com/questions/13812962/modal-window-with-custom-url-in-angularjs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can open your record producer in iframe or window popup&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;  onclick="window.open('https://google.com','popup','width=200,height=200,'); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:54:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668516#M325442</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2021-01-10T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668517#M325443</link>
      <description>&lt;P&gt;I'm trying this on service portal and I'm not a portal developer, so I'm having a difficulty even to understand how I can achieve this.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:57:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668517#M325443</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T16:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668518#M325444</link>
      <description>&lt;P&gt;Can you please help me with the exact code of how I can&amp;nbsp;add this to my widget?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 16:59:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668518#M325444</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668519#M325445</link>
      <description>&lt;P&gt;Sounds like you want a dialog window.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/"&gt;GlideDialogWindow: Advanced Popups Using UI Pages - ServiceNow Guru&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But for service portal you need to use the widget-modal.&amp;nbsp; Here is something I used to open one.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;//Client HTML
&amp;lt;sp-widget widget="data.modalInstance" ng-if="data.modalInstance"&amp;gt;&amp;lt;/sp-widget&amp;gt;

//Client Script
$scope.openModal = function(ev, table, sysid, query, view){
	
	if(!sysid)
		sysid = -1;
	
	spUtil.get("widget-modal", {embeddedWidgetId: "widget-form", 
															embeddedWidgetOptions: {table: table, 
																											sys_id: sysid, 
																											view: view,
																											query: query,
																											disableUIActions: "true",
																											hideRelatedLists: true
																										 }
														 }).then(function(widget){
		var modalCtrl;
		var unregister = $scope.$on('sp.form.record.updated', function(){
			//Do work here when record updated and then close modal
			modalCtrl.close();

		});
			
		widget.options.afterClose = function(){
			unregister();
			$scope.data.modalInstance = null;
			modalCtrl = null;
		};
		
		widget.options.afterOpen = function(ctrl){
			modalCtrl = ctrl;
		};
		$scope.data.modalInstance = widget;
		
	});
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:02:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668519#M325445</guid>
      <dc:creator>DrewW</dc:creator>
      <dc:date>2021-01-10T17:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668520#M325446</link>
      <description>&lt;P&gt;Can you please help me with the exact code of how I can&amp;nbsp;add this to my widget?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:27:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668520#M325446</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668521#M325447</link>
      <description>&lt;P&gt;Where do I add the "Record Producer URL" in the above script?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:31:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668521#M325447</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668522#M325448</link>
      <description>&lt;P&gt;so you can use&amp;nbsp;&lt;/P&gt;
&lt;DIV class="cm-comment-text cm-comment-view-mode ng-scope" data-ng-if="!comment.showEditMode"&gt;
&lt;DIV class="cm-comment-body"&gt;
&lt;DIV class="cm-comment-text-info"&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;  onclick="window.open('https://google.com','popup','width=200,height=200,'); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="cm-attachments-body"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="cm-comment-footer cm-common-light-color f-16px ng-scope" data-ng-if="!comment.showEditMode"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:36:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668522#M325448</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2021-01-10T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668523#M325449</link>
      <description>&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;a ng-href="{{options.href}}" target="_blank" class="btn btn-{{options.color}} m-b" ng-if="data.socialQAEnabled"&amp;gt;{{data.buttonMsg}}&amp;lt;/a&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where do I place onclick in the above code?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:45:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668523#M325449</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T17:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668524#M325450</link>
      <description>&lt;P&gt;you are using &amp;lt;a&amp;gt; tag instead you can use button tag with ng-click&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 17:55:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668524#M325450</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2021-01-10T17:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668525#M325451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;&amp;lt;button class="btn2 btn-default2" ng-click="openurl('/YOUR_URL')"&amp;gt;Button&amp;lt;/button&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;$scope.openurl = function(url){
    window.open(url, 'popup','heigth=600,width=600');   // may alse try $window

} &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:00:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668525#M325451</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2021-01-10T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668526#M325452</link>
      <description>&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;button class="btn2 btn-default2" ng-click="openurl('URL')"&amp;gt;Button&amp;lt;/button&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;$scope.openurl = function(url){
    window.open(url, 'popup','heigth=600,width=600');   // may alse try $window

} &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is how I used in the widget HTML and Client Controller. Button does not do anything.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:08:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668526#M325452</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668527#M325453</link>
      <description>&lt;P&gt;can you share your widget xml?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:18:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668527#M325453</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2021-01-10T18:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668528#M325454</link>
      <description>&lt;P&gt;Attached the Widget&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:33:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668528#M325454</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668529#M325455</link>
      <description>&lt;P&gt;I just realized my mistake. Updated Client Controller.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;function($scope) {
  /* widget controller */
  var c = this;
$scope.openurl = function(url){
    window.open(url, 'popup','heigth=600,width=600');
}
		
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But this is opening as new window not as a dialog box and when user submits the form from the new window, its redirecting to the ticket page.&lt;/P&gt;
&lt;P&gt;Here is my requirement in detail.&lt;/P&gt;
&lt;P&gt;I want a window just like window pop-up of MRVS (multi-row variable set). But this pop is a url to an other Record Producer. When user submits the pop-up record producer, the dialog window must close and the user must remain in the previously opened Record Producer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:42:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668529#M325455</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-10T18:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668530#M325456</link>
      <description>&lt;P&gt;For what you want you need to find the widget that will load a catalog item and then&amp;nbsp;review the code to see how to tell it to load the catalog item you want.&amp;nbsp;&amp;nbsp;So I believe you need something like this&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;spUtil.get("widget-modal", {embeddedWidgetId: "widget-sc-cat-item-v2", 
   embeddedWidgetOptions: { sys_id: &amp;lt;SYS_ID OF CAT ITEM&amp;gt; }
}).then(function(widget){
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Keep in mind that the OOB catalog item widget does NOT allow you to change the catalog item once you have loaded one.&amp;nbsp; So if you are expecting to be able to have different catalog items display based on different buttons you may have to have multiple popups.&lt;/P&gt;
&lt;P&gt;It will be interesting to know if you can submit this item without it causing other issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 16:55:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668530#M325456</guid>
      <dc:creator>DrewW</dc:creator>
      <dc:date>2021-01-11T16:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT: Record Producer to open in spModal pop-up window on click of a button.</title>
      <link>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668531#M325457</link>
      <description>&lt;P&gt;So if you look into MRVS functionality. It shows in a spModal format. So I want exactly the same view but the pop-up has to be a record producer itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Button on the Record Producer1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/201424i21477520A5EC6D2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Desired View of Record Producer2.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/201429iA2C4EF1ED3F3E78C/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So this should not be an Add row functionality. In this place I want RP2 to pop-up.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reason: User should submit RP2 and add the newly added location to the RP1 then submit RP1.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 20:02:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/urgent-record-producer-to-open-in-spmodal-pop-up-window-on-click/m-p/1668531#M325457</guid>
      <dc:creator>SM6</dc:creator>
      <dc:date>2021-01-11T20:02:24Z</dc:date>
    </item>
  </channel>
</rss>

