<?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 Create a New Record button in the widget with Instance Options (tables and fields dynamically) in SPM forum</title>
    <link>https://www.servicenow.com/community/spm-forum/create-a-new-record-button-in-the-widget-with-instance-options/m-p/2961415#M43669</link>
    <description>&lt;UL&gt;&lt;LI&gt;I have created a button to create new record, it is taking table dynamically from instance options, but not taking the fields using instance options.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Client Script:&lt;/P&gt;&lt;P&gt;$scope.newRecord = function() {&lt;BR /&gt;// Open modal with instance option fields&lt;BR /&gt;var modalInstance = spModal.open({&lt;BR /&gt;title: 'New Record',&lt;BR /&gt;widget: 'widget-form',&lt;BR /&gt;widgetInput: {&lt;BR /&gt;table: $scope.data.table,&lt;BR /&gt;fieldList: $scope.data.fieldList, // Pass instance option fields to the modal&lt;BR /&gt;view: $scope.data.view,&lt;BR /&gt;sys_id: '-1' // Indicates a new record&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;modalInstance.result.then(function() {&lt;BR /&gt;alert('Modal dismissed');&lt;BR /&gt;});&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Can anyone help me with this.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 19:52:42 GMT</pubDate>
    <dc:creator>Shikha123</dc:creator>
    <dc:date>2024-06-12T19:52:42Z</dc:date>
    <item>
      <title>Create a New Record button in the widget with Instance Options (tables and fields dynamically)</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-new-record-button-in-the-widget-with-instance-options/m-p/2961415#M43669</link>
      <description>&lt;UL&gt;&lt;LI&gt;I have created a button to create new record, it is taking table dynamically from instance options, but not taking the fields using instance options.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Client Script:&lt;/P&gt;&lt;P&gt;$scope.newRecord = function() {&lt;BR /&gt;// Open modal with instance option fields&lt;BR /&gt;var modalInstance = spModal.open({&lt;BR /&gt;title: 'New Record',&lt;BR /&gt;widget: 'widget-form',&lt;BR /&gt;widgetInput: {&lt;BR /&gt;table: $scope.data.table,&lt;BR /&gt;fieldList: $scope.data.fieldList, // Pass instance option fields to the modal&lt;BR /&gt;view: $scope.data.view,&lt;BR /&gt;sys_id: '-1' // Indicates a new record&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;modalInstance.result.then(function() {&lt;BR /&gt;alert('Modal dismissed');&lt;BR /&gt;});&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Can anyone help me with this.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 19:52:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-new-record-button-in-the-widget-with-instance-options/m-p/2961415#M43669</guid>
      <dc:creator>Shikha123</dc:creator>
      <dc:date>2024-06-12T19:52:42Z</dc:date>
    </item>
  </channel>
</rss>

