<?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 How can I setup page with select? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-setup-page-with-select/m-p/631989#M10950</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm not a javascript expert, but I have found useful examples to build setup pages for app and add-on:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://github.com/splunk/splunk-app-examples" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-app-examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;These examples show forms with input "text". I see that "textarea" works too.&lt;/P&gt;
&lt;P&gt;But I cant' build other input type, such as "select".&lt;/P&gt;
&lt;P&gt;How can I add "select" &lt;A href="https://github.com/splunk/splunk-app-examples/blob/2504c9f3d5d9817e118f35ed873212c71d30f7c3/setup_pages/react_setup_page_example/appserver/static/javascript/views/app.js#L46" target="_blank" rel="noopener"&gt;here&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;For instance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;e("label", null, [
"My label ",
e("input", { type: "select", name: "mytype", options: [
{ label: "File", value: "file" },
{ label: "Folder", value: "folder" },
], onChange: this.handleChange }),
]),&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doesn't work.&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 19:51:42 GMT</pubDate>
    <dc:creator>sistemistiposta</dc:creator>
    <dc:date>2023-02-23T19:51:42Z</dc:date>
    <item>
      <title>How can I setup page with select?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-setup-page-with-select/m-p/631989#M10950</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm not a javascript expert, but I have found useful examples to build setup pages for app and add-on:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://github.com/splunk/splunk-app-examples" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-app-examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;These examples show forms with input "text". I see that "textarea" works too.&lt;/P&gt;
&lt;P&gt;But I cant' build other input type, such as "select".&lt;/P&gt;
&lt;P&gt;How can I add "select" &lt;A href="https://github.com/splunk/splunk-app-examples/blob/2504c9f3d5d9817e118f35ed873212c71d30f7c3/setup_pages/react_setup_page_example/appserver/static/javascript/views/app.js#L46" target="_blank" rel="noopener"&gt;here&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;For instance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;e("label", null, [
"My label ",
e("input", { type: "select", name: "mytype", options: [
{ label: "File", value: "file" },
{ label: "Folder", value: "folder" },
], onChange: this.handleChange }),
]),&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doesn't work.&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 19:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-setup-page-with-select/m-p/631989#M10950</guid>
      <dc:creator>sistemistiposta</dc:creator>
      <dc:date>2023-02-23T19:51:42Z</dc:date>
    </item>
  </channel>
</rss>

