<?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>I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/discussions/f/general/5796/i-have-a-read-only-text-field-with-value-pre-populated-how-can-i-get-the-displa</link><description>I have a read only text field with value pre-populated. How can I get the display value? The saveInto expression is never executed. a!textField( label: &amp;quot;label&amp;quot;, value:&amp;quot;testValue&amp;quot;, readonly: true(), saveInto: ri!tv ) OriginalPostID-165545 OriginalPostID</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22131?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 22:33:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:375f1f9d-5e27-474c-b62d-78338d68bf0c</guid><dc:creator>Srinivasan Radhakrishnan</dc:creator><description>A user can only update a variable by interacting with a component that has the variable in the component&amp;#39;s saveInto parameter.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22117?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 17:46:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11b63228-f9d6-4fdd-b777-2e047d8dce9d</guid><dc:creator>Mike Schmitt</dc:creator><description>Maybe we need more detail here, but the only thing I can assume is that OP is attempting to push an arbitrary on-form literal value (&amp;quot;testValue&amp;quot;) up into a Rule Input - I suppose to be passed back into process?  Not sure.&lt;br /&gt;If this is the case then I think @chetany nailed it, with the suggestion to store the literal value in a local variable, display the local variable in the read-only text field, then push it to the Rule Input on button click.  I&amp;#39;d note here that it may be a better practice to declare the literal value in the ACP definition on the user input task; but there may be special use cases that don&amp;#39;t allow this for whatever reason.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22114?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 14:15:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e0872b0-f247-41c5-96d9-4dc8df8e1b8f</guid><dc:creator>Stefan Helzle</dc:creator><description>There is a sail recipe in the documentation. There the default value for fields is set in the data input on the user input task. &lt;a href="https://forum.appian.com/suite/help/7.10/SAIL_Recipes.html#Set_the_Default_Value_of_an_Input_on_a_Task_Form"&gt;forum.appian.com/.../SAIL_Recipes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22111?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 12:49:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb7ab078-84f3-4743-a5c1-a4a18a622773</guid><dc:creator>PhilB</dc:creator><description>Why not just set the value in a local and use that? It seems like a fixed value; if you want to just display a value, place it either in an ri or a local and then set it as the display value in the field. There&amp;#39;s no need to use the saveInto on a read only text field.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22110?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 12:41:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68265423-e210-4cf6-b2f9-47333358f46b</guid><dc:creator>chetany</dc:creator><description>As correctly said by @nageswararaoa, the value will not be saved if the user does not interact with the SAIL component. There is another solution. Specify the default value in local variable in load. Then save that variable in rule input in the buttonLayout. So that when the user submits the form by clicking on &amp;quot;Submit&amp;quot; button, the value will get saved into the rule input automatically. In this case, the user need not interact with the text field.  Your code will be like this:&lt;br /&gt;load(&lt;br /&gt;local!tv: &amp;quot;testValue&amp;quot;,&lt;br /&gt;a!formLayout(&lt;br /&gt;&lt;br /&gt;firstColumnContents: {&lt;br /&gt;&lt;br /&gt; a!textField(&lt;br /&gt;   label: &amp;quot;label&amp;quot;,&lt;br /&gt;   value: local!tv,&lt;br /&gt;   readOnly: true(),&lt;br /&gt;   saveInto: local!tv&lt;br /&gt; )&lt;br /&gt;},&lt;br /&gt;&lt;br /&gt;buttons: {&lt;br /&gt;  a!buttonLayout(&lt;br /&gt;     primaryButtons:  a!buttonWidgetSubmit(&lt;br /&gt;        label: &amp;quot;Submit&amp;quot;,&lt;br /&gt;        saveInto: a!save(ri!tv, local!tv)&lt;br /&gt;     )&lt;br /&gt;  )&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;)&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22109?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 12:10:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84497061-90c8-443c-a14e-4bf0bbc11f35</guid><dc:creator>nageswararaoa</dc:creator><description>You can save the value by using a!save() at another sail component and that should be have user interaction&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a read only text field with value pre-populated. How can I get the displa</title><link>https://community.appian.com/thread/22108?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 12:01:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fbf0cfb1-5c66-4ebd-97b1-4b7573d4c1c9</guid><dc:creator>nageswararaoa</dc:creator><description>You should interact with the component to execute saveInto expression&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>