<?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: Cannot get value from &amp;quot;Select input&amp;quot; in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/766005#M62049</link>
    <description>&lt;P&gt;Change&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const { example_input } = event.payload.formState.select_input;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const { example_input } =&lt;FONT color="#FF0000"&gt; context.&lt;/FONT&gt;event.payload.formState.select_input;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 17:32:48 GMT</pubDate>
    <dc:creator>SBista</dc:creator>
    <dc:date>2023-03-08T17:32:48Z</dc:date>
    <item>
      <title>Cannot get value from "Select input"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/759610#M61616</link>
      <description>&lt;P&gt;Hello. I'm using this documentation to get value from Select Input:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/platform/create-custom-cards-with-projects#select-input" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/platform/create-custom-cards-with-projects#select-input&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result unsuccessful. Probably you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exports.main = async (context, sendResponse) =&amp;gt; {&lt;BR /&gt;const { event } = context;&lt;/P&gt;&lt;P&gt;if (event &amp;amp;&amp;amp; event.type === 'SUBMIT') {&lt;BR /&gt;const { example_input } = event.payload.formState.select_input;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sendResponse({&lt;BR /&gt;message: {&lt;BR /&gt;type: 'SUCCESS',&lt;BR /&gt;body: `Form submit was successful. Input's value: ${example_input}`,&lt;BR /&gt;},&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;sendResponse({&lt;BR /&gt;sections: [&lt;BR /&gt;{&lt;BR /&gt;"type": "form",&lt;BR /&gt;"content": [&lt;BR /&gt;{&lt;BR /&gt;"type": "select",&lt;BR /&gt;"name": "select_input",&lt;BR /&gt;"label": "Single select list",&lt;BR /&gt;"placeholder": "Select a value",&lt;BR /&gt;"options": [&lt;BR /&gt;{&lt;BR /&gt;"value": 42,&lt;BR /&gt;"label": "Option 1"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"value": true,&lt;BR /&gt;"label": "Option 2"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"value": "a string",&lt;BR /&gt;"label": "Option 3"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"type": "button",&lt;BR /&gt;"text": "Submit form",&lt;BR /&gt;"onClick": {&lt;BR /&gt;"type": "SUBMIT",&lt;BR /&gt;"serverlessFunction": "crm-card"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;});&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:31:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/759610#M61616</guid>
      <dc:creator>IDev2</dc:creator>
      <dc:date>2023-02-22T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get value from "Select input"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/760422#M61674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/518033"&gt;@IDev2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your question. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you include any additional details or screenshots? For example, are you getting a response, but not the one you expect? An error and error message? Or something else? This context helps the community to understand your issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/241684"&gt;@ChrisoKlepke&lt;/a&gt;, do you have any suggestions? Or thoughts on how they can troubleshoot their project?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kristen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 21:54:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/760422#M61674</guid>
      <dc:creator>kvlschaefer</dc:creator>
      <dc:date>2023-02-23T21:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get value from "Select input"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/766005#M62049</link>
      <description>&lt;P&gt;Change&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const { example_input } = event.payload.formState.select_input;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const { example_input } =&lt;FONT color="#FF0000"&gt; context.&lt;/FONT&gt;event.payload.formState.select_input;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 17:32:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-get-value-from-quot-Select-input-quot/m-p/766005#M62049</guid>
      <dc:creator>SBista</dc:creator>
      <dc:date>2023-03-08T17:32:48Z</dc:date>
    </item>
  </channel>
</rss>

