<?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: passing variable to textbox in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094570#M21307</link>
    <description>&lt;P&gt;When I pick a feature to edit (using Edit widget), I'd like the account # users searched for pops in the account field ?&amp;nbsp; Is it do-able ?&amp;nbsp; In case it's too hard to insert the acct# there I'll settle with having the acct# automatically saved when users click save edit.&amp;nbsp; Hope I make sense to you.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EditWidget.PNG" style="width: 248px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22218i3441DB0033F2B2CC/image-dimensions/248x311?v=v2" width="248" height="311" role="button" title="EditWidget.PNG" alt="EditWidget.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 18:18:59 GMT</pubDate>
    <dc:creator>LeLuong</dc:creator>
    <dc:date>2021-09-01T18:18:59Z</dc:date>
    <item>
      <title>passing variable to textbox</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094149#M21302</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I'm using web appbuilder developer.&amp;nbsp; I'm trying to learn to pass variable from 1 widget to another.&amp;nbsp; I see that if you have a parameter from url (ex: ...webappbuilder/?id=1&amp;amp;find=123456789) then the textbox in"Near Me Widget" will have that value in it. (Picture attached).&amp;nbsp; Could you please help locate the codes that makes it happened?&amp;nbsp; I've never done customizing widget before and now what I'm trying to do in my case is to take that account # from the url to pass to a attribute field in edit widget so users don't have to type in the account number again.&amp;nbsp; Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="URLparameter.PNG" style="width: 304px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22129i7475DB7CC0A0CE2E/image-dimensions/304x238?v=v2" width="304" height="238" role="button" title="URLparameter.PNG" alt="URLparameter.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 19:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094149#M21302</guid>
      <dc:creator>LeLuong</dc:creator>
      <dc:date>2021-08-31T19:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable to textbox</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094152#M21303</link>
      <description>&lt;P&gt;You just need to capture the value after the field 'find' . THe variable&amp;nbsp;valueReceived should give the value to use in the widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;urlSubstring = location.search.substring(1);
                console.log(urlSubstring);
                if (urlSubstring.indexOf("?") &amp;gt; 0) {
                    var myparams1 = urlSubstring.split('?');
                    urlSubstring = myparams1[1];
                }
                if (urlSubstring) {
                    var params = urlSubstring.split('&amp;amp;&amp;amp;');
var variablesPair = params;
                        if ((index = variablesPair.indexOf("=")) &amp;gt;= 0) {
                            var varReceived = variablesPair.substring(0, index);
                            var valueReceived = variablesPair.substring(index + 1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 19:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094152#M21303</guid>
      <dc:creator>LefterisKoumis1</dc:creator>
      <dc:date>2021-08-31T19:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable to textbox</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094179#M21304</link>
      <description>&lt;P&gt;Pardon me for more stupid questions. Now that I have the string, do you know how I can tell my field equal to the&amp;nbsp; "valueReceived" when users click save?&amp;nbsp; and all these codes should happen in widget.js file of Edit widget right ?&amp;nbsp; Thank you so much for your help and patience.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 31 Aug 2021 20:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094179#M21304</guid>
      <dc:creator>LeLuong</dc:creator>
      <dc:date>2021-08-31T20:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable to textbox</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094216#M21305</link>
      <description>&lt;P&gt;Like I heard before, there are no stupid questions, only stupid answers.&lt;/P&gt;&lt;P&gt;Not sure what do you mean save? Do you mean search? Yes, the code should be in the widget that you want to get the value from the URL.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 22:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094216#M21305</guid>
      <dc:creator>LefterisKoumis1</dc:creator>
      <dc:date>2021-08-31T22:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable to textbox</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094570#M21307</link>
      <description>&lt;P&gt;When I pick a feature to edit (using Edit widget), I'd like the account # users searched for pops in the account field ?&amp;nbsp; Is it do-able ?&amp;nbsp; In case it's too hard to insert the acct# there I'll settle with having the acct# automatically saved when users click save edit.&amp;nbsp; Hope I make sense to you.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EditWidget.PNG" style="width: 248px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22218i3441DB0033F2B2CC/image-dimensions/248x311?v=v2" width="248" height="311" role="button" title="EditWidget.PNG" alt="EditWidget.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 18:18:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/passing-variable-to-textbox/m-p/1094570#M21307</guid>
      <dc:creator>LeLuong</dc:creator>
      <dc:date>2021-09-01T18:18:59Z</dc:date>
    </item>
  </channel>
</rss>

