<?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>topic Re: Custom Button that opens a HTML form in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694071#M56995</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363123"&gt;@PPaiva&lt;/a&gt;&amp;nbsp;, I'm actually looking at CRM Development Tools inside my sandbox portal.&lt;/P&gt;&lt;P&gt;I have successfully deployed the CRM card for the iframe sample code located at&amp;nbsp;&lt;A href="https://github.com/HubSpot/ui-extensions-examples/tree/main/display-iframe" target="_blank"&gt;https://github.com/HubSpot/ui-extensions-examples/tree/main/display-iframe&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I can open up the modal dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is when the user finishes entering data on the HTML page and clicks on 'Submit' I want that action to pass the information from the HTML form back into the HubSpot card AND REFRESH the HubSpot card to display the card with the updated values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the looks of it I think the HubSpot card DOES gets refreshed when the user closes the model dialog but I just to confirm ?&lt;/P&gt;&lt;P&gt;Can this be done through the onclick action for 'IFRAME '&amp;nbsp; type ?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 03:38:37 GMT</pubDate>
    <dc:creator>Stanza</dc:creator>
    <dc:date>2022-09-16T03:38:37Z</dc:date>
    <item>
      <title>Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/692936#M56916</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a &lt;STRONG&gt;custom button&lt;/STRONG&gt; on the &lt;STRONG&gt;company card&lt;/STRONG&gt; that opens a modal dialog that allows user input?&lt;/P&gt;&lt;P&gt;The user enters data and then clicks ok om the form and it should return back to the company card and refresh the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this at all possible if so then please point me ot the right documentation.&lt;/P&gt;&lt;P&gt;I am happy to achieve his through custom coding, just want to know if it's possible and whats involved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 23:36:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/692936#M56916</guid>
      <dc:creator>Stanza</dc:creator>
      <dc:date>2022-09-13T23:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/693531#M56949</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/254633"&gt;@Stanza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;It's possible through the CRM Cards API&amp;nbsp;.&lt;/P&gt;&lt;P&gt;You create an app with a card and add actions to open Iframe modal pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference docs here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/extensions/custom-cards#tab-3" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/extensions/custom-cards&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Paulo paiva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sollogica.com" target="_blank" rel="noopener"&gt;www.sollogica.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 23:06:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/693531#M56949</guid>
      <dc:creator>PPaiva</dc:creator>
      <dc:date>2022-09-14T23:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694071#M56995</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363123"&gt;@PPaiva&lt;/a&gt;&amp;nbsp;, I'm actually looking at CRM Development Tools inside my sandbox portal.&lt;/P&gt;&lt;P&gt;I have successfully deployed the CRM card for the iframe sample code located at&amp;nbsp;&lt;A href="https://github.com/HubSpot/ui-extensions-examples/tree/main/display-iframe" target="_blank"&gt;https://github.com/HubSpot/ui-extensions-examples/tree/main/display-iframe&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I can open up the modal dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is when the user finishes entering data on the HTML page and clicks on 'Submit' I want that action to pass the information from the HTML form back into the HubSpot card AND REFRESH the HubSpot card to display the card with the updated values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the looks of it I think the HubSpot card DOES gets refreshed when the user closes the model dialog but I just to confirm ?&lt;/P&gt;&lt;P&gt;Can this be done through the onclick action for 'IFRAME '&amp;nbsp; type ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 03:38:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694071#M56995</guid>
      <dc:creator>Stanza</dc:creator>
      <dc:date>2022-09-16T03:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694279#M57012</link>
      <description>&lt;P&gt;The form submit is under your control, as the page inside the IFRAME is yours.&lt;/P&gt;&lt;P&gt;From the form postback you send a card Update via &lt;A href="https://developers.hubspot.com/docs/api/crm/extensions/custom-cards" target="_blank" rel="noopener"&gt;Cards API.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the update is made you close the modal through:&lt;/P&gt;&lt;PRE&gt;window.parent.postMessage(JSON.stringify({"action": "DONE"}), "*");&lt;/PRE&gt;&lt;P&gt;The details to close the modal are also in the Card API, on the webhooks tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Paulo paiva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sollogica.com" target="_blank" rel="noopener nofollow noreferrer"&gt;www.sollogica.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 12:08:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694279#M57012</guid>
      <dc:creator>PPaiva</dc:creator>
      <dc:date>2022-09-20T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694631#M57037</link>
      <description>&lt;P&gt;Fantastic !. Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363123"&gt;@PPaiva&lt;/a&gt;&amp;nbsp;will check it out.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 23:16:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694631#M57037</guid>
      <dc:creator>Stanza</dc:creator>
      <dc:date>2022-09-18T23:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Button that opens a HTML form</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694834#M57048</link>
      <description>&lt;P&gt;Your welcome &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/254633"&gt;@Stanza&lt;/a&gt;. Don't forget to mark as solved!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:01:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Button-that-opens-a-HTML-form/m-p/694834#M57048</guid>
      <dc:creator>PPaiva</dc:creator>
      <dc:date>2022-09-19T13:01:57Z</dc:date>
    </item>
  </channel>
</rss>

