<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Static Value in text field in saving in other variable</title><link>https://community.appian.com/discussions/f/user-interface/20356/static-value-in-text-field-in-saving-in-other-variable</link><description>Hi all, 
 
 I Need to display static value in the text field and same value should save into one more variable , 
 Please advise. 
 load( local!getTexfieldValue, 
 { a!textField( value: &amp;quot;abc&amp;quot;, saveInto: { a!save(local!getTexfieldValue,save!value) }, </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79401?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 16:26:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf85baa7-2379-4e5a-811d-d4fab7bd39d1</guid><dc:creator>pallavin0001</dc:creator><description>&lt;p&gt;Thanks Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79392?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:06:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc0564a0-12b9-485d-9100-69a6b0131e8f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;it looks like &lt;a href="/members/dhananjayk"&gt;Dhananjay Kumar&lt;/a&gt; already gave you a working answer below, but just to clarify, &amp;quot;get static value of a text field&amp;quot; isn&amp;#39;t really thinking about it in the right order.&amp;nbsp; A read-only text field just displays a value you feed in, it doesn&amp;#39;t &amp;quot;have&amp;quot; a value to &amp;quot;get&amp;quot;.&amp;nbsp; Any static values you want to have handy for use in other places on a form should be declared in a local variable, where they&amp;#39;ll be accessible for whatever else you want (display, writing to DB, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79385?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 08:22:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d21925c-6964-4b66-aa8e-7ce08ade8e1d</guid><dc:creator>pallavin0001</dc:creator><description>&lt;p&gt;Yeah i can do like this :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you Dhananjay&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79383?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 03:05:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:481031d1-8f8b-498a-98d2-f7b4079eb6a0</guid><dc:creator>Dhananjay Kumar</dc:creator><description>&lt;p&gt;Yes that&amp;#39;s right, you can save that way but this will work only if the user types in text field.&lt;br /&gt;&lt;br /&gt;If you are not sure if the user will do that then you can directly load the vale as Chandrasekar adviced as below:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!value: &amp;quot;Static Value&amp;quot;,&lt;br /&gt; local!getTexfieldValue: local!value,&lt;br /&gt; a!textField(&lt;br /&gt; label: local!getTexfieldValue/* Added here to see the reflection, remove it*/,&lt;br /&gt; value: local!value,&lt;br /&gt; saveInto: {&lt;br /&gt; local!value,&lt;br /&gt; /* Below save into will save the new value of local!value if user interacts or change the value by tying into text field*/&lt;br /&gt; a!save(local!getTexfieldValue, save!value)&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79382?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2021 18:30:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8abd05b8-5efc-41a1-a5ae-8b251c09ec2c</guid><dc:creator>pallavin0001</dc:creator><description>&lt;p&gt;Hi Chandrasekar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am expecting to save the value of this local!value into&amp;nbsp;&lt;span&gt;local!getTexfieldValue to inset this data to database,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not displaying this value in interface but i need this value to be saved in local!getTexfieldValue&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!getTexfieldValue,&lt;br /&gt; local!value:&amp;quot;Static Value&amp;quot;,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; a!textField(&lt;br /&gt; value:local!value,&lt;/p&gt;
&lt;p&gt;saveInto:&lt;br /&gt; {&lt;br /&gt; local!value,&lt;br /&gt; a!save(local!getTexfieldValue,save!value)&lt;br /&gt; },&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79381?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2021 18:25:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3670064f-f39a-410f-9bdf-a5b011cf0cfd</guid><dc:creator>pallavin0001</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can I get the static value of the text field with out refreshing the text field. I need to save that value to one more local variable so that i can use it to insert into Database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79380?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2021 06:15:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74efb97a-024d-4d26-8e45-fe4605ed2b53</guid><dc:creator>Chandra Sekhar Gattu</dc:creator><description>&lt;p&gt;Hi Pallavi,&lt;/p&gt;
&lt;p&gt;Since that is a static value, can you initialize directly in local variables and use that according to your need in any subsequent form fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Value in text field in saving in other variable</title><link>https://community.appian.com/thread/79379?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2021 02:03:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81b0eb88-0355-4818-8978-055d34c7fb76</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not clear what you&amp;#39;re trying to do here over all, but you should note that the saveInto for any field (regardless of what type of field it is) only executes upon user interaction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>