<?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 Autopopulate username field in a form in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539658#M36957</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a form being built in Splunk Enterprise, its used as a lookup table so we can see if there is a known issue with a host etc...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="logginz85_0-1613123662322.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12918i79B08C3FE9F7B004/image-size/medium?v=v2&amp;amp;px=400" role="button" title="logginz85_0-1613123662322.png" alt="logginz85_0-1613123662322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use the issue field to have a drop down option, and the host and IP are manually input.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I'd like is for the "added by" field to be automatically populated with the signed in users ID/name/Username etc...This is for audit purposes mainly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've looked around and can't seem to find out how to do this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any/all help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 09:58:35 GMT</pubDate>
    <dc:creator>logginz85</dc:creator>
    <dc:date>2021-02-12T09:58:35Z</dc:date>
    <item>
      <title>Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539658#M36957</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a form being built in Splunk Enterprise, its used as a lookup table so we can see if there is a known issue with a host etc...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="logginz85_0-1613123662322.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12918i79B08C3FE9F7B004/image-size/medium?v=v2&amp;amp;px=400" role="button" title="logginz85_0-1613123662322.png" alt="logginz85_0-1613123662322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use the issue field to have a drop down option, and the host and IP are manually input.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I'd like is for the "added by" field to be automatically populated with the signed in users ID/name/Username etc...This is for audit purposes mainly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've looked around and can't seem to find out how to do this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any/all help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 09:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539658#M36957</guid>
      <dc:creator>logginz85</dc:creator>
      <dc:date>2021-02-12T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539660#M36959</link>
      <description>&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="text" token="user"&amp;gt;
      &amp;lt;label&amp;gt;User name&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;$env:user$&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Feb 2021 10:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539660#M36959</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-12T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539666#M36960</link>
      <description>&lt;P&gt;That's amazing, so simple. Now how can I set it so that field cant be changed by the user too?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 10:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539666#M36960</guid>
      <dc:creator>logginz85</dc:creator>
      <dc:date>2021-02-12T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539678#M36961</link>
      <description>&lt;P&gt;If you don't want the user to change it, why is it on the form in the first place?&lt;/P&gt;&lt;P&gt;You can add some style to prevent clicking on field, but if you want to disable it completely i.e. prevent tabbing to it as well, you will probably need to resort to javascript.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539678#M36961</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-12T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539682#M36962</link>
      <description>&lt;P&gt;that a fair point, I'd like the field to be used to capture whoever submitted the option in the form, but it doesnt need to be displayed I guess.&lt;BR /&gt;&lt;BR /&gt;As such, if I just hid the field but retained all the features, it would capture the env:user information but then not leave it open to be edited&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539682#M36962</guid>
      <dc:creator>logginz85</dc:creator>
      <dc:date>2021-02-12T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539685#M36963</link>
      <description>&lt;P&gt;I've got it. The idea was to have the username field auto-populated and to be read only so as to keep a record of which user submitted the item on the form.&amp;nbsp;&lt;BR /&gt;I thought of having it as a box that would read the&amp;nbsp;$env:user$&amp;nbsp; field, then pulling that to a table to be displayed underneath,&lt;BR /&gt;&lt;BR /&gt;The issue was that if the username field pulls $env:user$, the user could simply edit that field to another users details.&lt;BR /&gt;&lt;BR /&gt;Got round it by instead of pulling to the form box, then going to table, just pulling straight to table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you greatly for your help. That really helped.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539685#M36963</guid>
      <dc:creator>logginz85</dc:creator>
      <dc:date>2021-02-12T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Autopopulate username field in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539686#M36964</link>
      <description>&lt;P&gt;Yes, and this can be done with the depends attribute&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Autopopulate-username-field-in-a-form/m-p/539686#M36964</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-12T13:15:01Z</dc:date>
    </item>
  </channel>
</rss>

