<?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>Interface Value</title><link>https://community.appian.com/discussions/f/user-interface/24678/interface-value</link><description>I want my interface to display a value in a text field (text field #2) that is the same value as a different text field (text field #1). The purpose is to save the user time so he doesn&amp;#39;t have to type the information twice. 
 Text field #1 saves to a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface Value</title><link>https://community.appian.com/thread/95391?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 15:43:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54b1f4b5-6c12-4005-adba-b3100340dcf0</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="110757" url="~/discussions/f/user-interface/24678/interface-value/95390#95390"]Appian requires&amp;nbsp;direct user interaction in a field for a value to even register in the field and become savable[/quote]
&lt;p&gt;Yup! &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
[quote userid="110757" url="~/discussions/f/user-interface/24678/interface-value/95390#95390"]Gopal skipped thinking about anything else by simply saving the value of text field #1 on behalf of text field #2 [/quote]
&lt;p&gt;He (and I both) assumed this is what you were after, per your initial phrasing.&amp;nbsp; If your requirement is different in some way, just let us know and we&amp;#39;ll help you figure out what more to add.&lt;/p&gt;
[quote userid="110757" url="~/discussions/f/user-interface/24678/interface-value/95390#95390"]saveInto will allow me to save an array of saves if I use the {} and a!save to describe the second save item [/quote]
&lt;p&gt;Yes, and this is an important part of how powerful Appian interfaces can be with a bit of custom tuning, once you get used to the nature of the way these work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface Value</title><link>https://community.appian.com/thread/95390?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 15:31:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92eb7af9-5032-4391-befe-a864e67a2203</guid><dc:creator>louiss0005</dc:creator><description>&lt;p&gt;Well, this is cool that you are explaining the nuts and bolts, as I am new to all of this. I&amp;#39;m gonna recap the lessons that I think I just learned:&lt;/p&gt;
&lt;p&gt;1. field #2 didn&amp;#39;t save a value because Appian requires&amp;nbsp;direct user interaction in a field for a value to even register in the field and become savable,&lt;/p&gt;
&lt;p&gt;2. Gopal skipped thinking about anything else by simply saving the value of text field #1 on behalf of text field #2 within text field #1&amp;#39;s saveInto line,&lt;/p&gt;
&lt;p&gt;3. saveInto will allow me to save an array of saves if I use the {} and a!save to describe the second save item and each save item thereafter,&lt;/p&gt;
&lt;p&gt;4. there is some potential for further confusion if my intent includes the ability to save different values in&amp;nbsp;text field #1 and text field #2 (it is my intent to save the same value, so I am happy with this lesson as it is right now).&lt;/p&gt;
&lt;p&gt;You two have been very helpful. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface Value</title><link>https://community.appian.com/thread/95388?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 15:17:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6164c071-c348-419f-a588-cce235fecb90</guid><dc:creator>louiss0005</dc:creator><description>&lt;p&gt;Okay, this is working. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface Value</title><link>https://community.appian.com/thread/95387?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 15:14:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:228257fa-30e8-4560-bc27-3e29810a845e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Gopalk&amp;#39;s solution is probably the correct one for your use case, but it will help if you understand a bit more about what&amp;#39;s happening here.&lt;/p&gt;
&lt;p&gt;In Appian, for any user input field, the &amp;quot;saveInto&amp;quot; parameter only has &lt;em&gt;&lt;strong&gt;any effect whatsoever&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; when the user &lt;em&gt;&lt;strong&gt;directly interacts with&lt;/strong&gt;&lt;/em&gt; that field.&amp;nbsp; What you&amp;#39;ve done here, on the other hand, will cause the &amp;quot;field #2&amp;quot; value to &lt;em&gt;&lt;strong&gt;always&lt;/strong&gt;&lt;/em&gt; show the value of &lt;em&gt;ri!record.trainingevent&lt;/em&gt;, and if any changes are made to it from that field, &lt;em&gt;only then&lt;/em&gt; will the changes save &lt;em&gt;only&lt;/em&gt; to &amp;quot;ri!equipment.trainingEvent&amp;quot;, but those changes will &lt;strong&gt;&lt;em&gt;not be reflected&lt;/em&gt;&lt;/strong&gt; in the field itself since its value is set to only reflect &lt;em&gt;ri!record.trainingEvent&lt;/em&gt;.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1653318644233v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Instead, per the code GoalK posted already, we have the first &amp;quot;training event&amp;quot; field save any user input directly into &lt;em&gt;both&lt;/em&gt; data targets simultaneously.&amp;nbsp; Then the &amp;quot;field #2&amp;quot; value is changed to correctly reflect its &lt;em&gt;own&lt;/em&gt; value, and any changes to that field will change &lt;em&gt;only&lt;/em&gt; its value.&amp;nbsp; This will roughly accomplish the behavior you&amp;#39;re after.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The one thing to be careful of here, though, is that if the user enters a value in Field 1, then makes an edit to Field 2&amp;#39;s value, but then &lt;em&gt;&lt;strong&gt;also&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; goes back and edits Field 1 again, the new value for Field 1 will &lt;em&gt;&lt;strong&gt;overwrite&lt;/strong&gt;&lt;/em&gt; the Field 2 data without caring that it already has a value.&amp;nbsp; If this is your intent, then that&amp;#39;s fine, but if there&amp;#39;s a chance this will cause further user confusion, then you will need to refine the Field1 &lt;em&gt;saveInto&lt;/em&gt; to avoid overwriting Field 2&amp;#39;s value if it&amp;#39;s anything other than &amp;quot;blank&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface Value</title><link>https://community.appian.com/thread/95383?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 14:51:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31067c0c-1215-4169-8ed1-545ed0de918f</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;HI, You would need to save 2nd rule input value in first text field&amp;#39;s saveInto parameter like below,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!textField(
label: &amp;quot;Training Event&amp;quot;,
labelPosition: &amp;quot;ABOVE&amp;quot;,
value: ri!record.trainingevent,         &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
saveInto: {
ri!record.trainingevent,
a!save(ri!equipment.trainingEvent,ri!record.trainingevent)
},
characterLimit: 255,
showCharacterCount: false,
required: false
),

Here is text field #2:

a!textField(
label: &amp;quot;Training Event&amp;quot;,
labelPosition: &amp;quot;ABOVE&amp;quot;,
value: ri!equipment.trainingEvent,         &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
saveInto: ri!equipment.trainingEvent,
characterLimit: 255,
showCharacterCount: false,
required: false
),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>