title: How do I update or push a Slack modal view on submission? (Slack API w/ Bolt)
body: <p>Modal fails to update or push the new view upon modal view submission. Slack's <a href="https://slack.dev/bolt-js/concepts#updating-pushing-views" rel="nofollow noreferrer">Bolt documentation</a> only shows modal update or push through an interactive component. Correct functionality can be seen with the Giphy slack app.</p>
  <p>Here's my code for the modal view I'm wanting to push:</p>
  <pre><code>app.action({'callback_id': 'gifsearchview_1'}, async ({ ack, body, context }) =&gt; {
     await ack();
     try {
       const result = await app.client.views.push({
         token: context.botToken,
         view_id: body.view.id,
         // View payload with updated blocks
         view: {
             // View identifier
             &quot;type&quot;: &quot;modal&quot;,
             &quot;callback_id&quot;: 'gifsearchview_2',
                 &quot;title&quot;: {
                     &quot;type&quot;: &quot;plain_text&quot;,
                     &quot;text&quot;: &quot;Search Results&quot;,
                     &quot;emoji&quot;: true
                 },
                 &quot;submit&quot;: {
                     &quot;type&quot;: &quot;plain_text&quot;,
                     &quot;text&quot;: &quot;Submit&quot;
                 },
                 &quot;blocks&quot;: [
                     {
                         &quot;type&quot;: &quot;section&quot;,
                         &quot;text&quot;: {
                             &quot;type&quot;: &quot;mrkdwn&quot;,
                             &quot;text&quot;: &quot;Updated.&quot;
                         },
                     }
                 ]
           }
       });
       console.log(result);
     }
     catch (error) {
       console.error(error);
     }
   });
  </code></pre>