<?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 Sideview Utils - Textfield Default Values from URL in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Textfield-Default-Values-from-URL/m-p/23679#M651</link>
    <description>&lt;P&gt;My question is fairly identical to this old one here: &lt;A href="http://splunk-base.splunk.com/answers/83479/pass-foo-value-to-textfield-default"&gt;http://splunk-base.splunk.com/answers/83479/pass-foo-value-to-textfield-default&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It seems that user was having the same problem as me, and his issue did not appear to get resolved.&lt;/P&gt;

&lt;P&gt;I have a view that looks pretty much like this: bpaste.net/show/kDAzkyf0yiOGc1geSM5p/&lt;/P&gt;

&lt;P&gt;I want the Textfields to display URL parameter values as their default value.&lt;/P&gt;

&lt;P&gt;When I visit the URL with parameters like "/app/search/viewname?IP=1.1.1.1&amp;amp;time=whatever", the HTML module properly substitutes the &lt;CODE&gt;$foo$&lt;/CODE&gt; values (&lt;CODE&gt;$IP$&lt;/CODE&gt; and &lt;CODE&gt;$time$&lt;/CODE&gt;), but the Textfields simply remain blank. They are definitely spelled and cased properly. I also tried adding a "default" param to each Textfield, but that does not work (&lt;CODE&gt;$IP$&lt;/CODE&gt; remains as a literal &lt;CODE&gt;$IP$&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;I am running the latest versions of both Sideview and Splunk.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2013 19:48:51 GMT</pubDate>
    <dc:creator>ianshefferman</dc:creator>
    <dc:date>2013-08-02T19:48:51Z</dc:date>
    <item>
      <title>Sideview Utils - Textfield Default Values from URL</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Textfield-Default-Values-from-URL/m-p/23679#M651</link>
      <description>&lt;P&gt;My question is fairly identical to this old one here: &lt;A href="http://splunk-base.splunk.com/answers/83479/pass-foo-value-to-textfield-default"&gt;http://splunk-base.splunk.com/answers/83479/pass-foo-value-to-textfield-default&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It seems that user was having the same problem as me, and his issue did not appear to get resolved.&lt;/P&gt;

&lt;P&gt;I have a view that looks pretty much like this: bpaste.net/show/kDAzkyf0yiOGc1geSM5p/&lt;/P&gt;

&lt;P&gt;I want the Textfields to display URL parameter values as their default value.&lt;/P&gt;

&lt;P&gt;When I visit the URL with parameters like "/app/search/viewname?IP=1.1.1.1&amp;amp;time=whatever", the HTML module properly substitutes the &lt;CODE&gt;$foo$&lt;/CODE&gt; values (&lt;CODE&gt;$IP$&lt;/CODE&gt; and &lt;CODE&gt;$time$&lt;/CODE&gt;), but the Textfields simply remain blank. They are definitely spelled and cased properly. I also tried adding a "default" param to each Textfield, but that does not work (&lt;CODE&gt;$IP$&lt;/CODE&gt; remains as a literal &lt;CODE&gt;$IP$&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;I am running the latest versions of both Sideview and Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 19:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Textfield-Default-Values-from-URL/m-p/23679#M651</guid>
      <dc:creator>ianshefferman</dc:creator>
      <dc:date>2013-08-02T19:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils - Textfield Default Values from URL</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Textfield-Default-Values-from-URL/m-p/23680#M652</link>
      <description>&lt;P&gt;It's not intuitive, but as with Pulldown prepopulation, you need to add an &lt;CODE&gt;autoRun="True"&lt;/CODE&gt;  attribute to the top module in the view.  In this case to the URLLoader module.   &lt;/P&gt;

&lt;P&gt;That will cause an initial push when the page loads and it's only when that push happens that the prepopulation will happen. &lt;/P&gt;

&lt;P&gt;Note that of course the autoRun push will also dispatch all the searches on the page.  If you dont want that to happen you can explore using a Button module with its allowAutoSubmit param set to False,  to prevent this. &lt;/P&gt;

&lt;P&gt;Back to the weirdness of autoRun being required here -  With a Pulldown module it's maybe a bit more forgivable, because the autoRun is often also necessary to kick off the Pulldown's search.  With TextField it's just weird I admit.    The good news is that I think it's fixable with TextField so I'll take a look.  Specifically I think in a near-future version I can correct this behavior and get your TextField's prepopulating without the need for you to add an autoRun="True". &lt;/P&gt;

&lt;P&gt;Also, that other question was indeed answered if you read the comment thread he had a couple other typos and issues going on, but we got him sorted in the end. &lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 20:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Textfield-Default-Values-from-URL/m-p/23680#M652</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-08-02T20:33:20Z</dc:date>
    </item>
  </channel>
</rss>

