<?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>Filed value saving issue</title><link>https://community.appian.com/discussions/f/user-interface/17195/filed-value-saving-issue</link><description>Hi 
 Below are two codes where first one is getting save in rule input variable but on display validation nothing is displaying . 
 On second code i have added &amp;#39;value&amp;#39; syntax conditionally. Where display value will come on true condition.But after adding</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67814?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:55:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:30e1a586-be23-4460-9e3d-e602b5152165</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Then how this is working.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;saveInto: {&lt;/span&gt;&lt;br /&gt;&lt;span&gt;a!save(ri!requsetData.sampleField,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;if(rule!APN_isBlank(local!tempChangeFlag),&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{ri!requsetData.sampleField},&amp;quot;Need to Display if flag is true&amp;quot;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That i am not putting in checkbox.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If i remove this &amp;quot;value&amp;quot; syntax then it is getting save properly and changing also on change of checkbox. If its working properly then why giving issue by adding &amp;quot;Value&amp;quot; syntax. I add this because i want to show what is going to be save after checking checkbox. because it is going to be&amp;nbsp; auto populate on selection of checkbox.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67813?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:51:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:100e7dda-07c6-4b07-8937-744e4194e0a3</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re hoping for the &lt;em&gt;actual stored value&lt;/em&gt; to be changed when the value of the checkbox changes, then you need to put in the necessary code in the saveInto of the checkbox.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your intention is for some other change to happen, then please clarify a bit more for me what exactly you&amp;#39;re hoping to accomplish since I&amp;#39;m still not quite understanding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67811?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:48:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:961ab664-0652-4da8-89b2-233bc210781f</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Why do we need to modify checkbox field. This checkbox is getting use on most of columns. I need to do at paragraph field only.&lt;/p&gt;
&lt;p&gt;Why its not taking very straight forward condition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67810?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:42:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6b76e12-2e6c-4ae5-9945-ccc135dc418b</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="24157" url="~/discussions/f/user-interface/17195/filed-value-saving-issue/67809"]On selection of that flag value will change.[/quote]
&lt;p&gt;Maybe I understand now - so if you&amp;#39;re hoping that the value saved into ri!requestData.sampleField changes when the checkbox is changed, then you should add an a!save() to the saveInto array of your Checkbox field.&lt;/p&gt;
&lt;p&gt;Try this revised example code and see if it gives you any further ideas:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;load(
  local!paragraphValue: null(),
  local!checkboxValue: false(),
  
  a!sectionLayout(
    contents: {
      a!paragraphField(
        label: &amp;quot;Sample Field&amp;quot;,
        value: local!paragraphValue,
        disabled: if(
          local!checkboxValue = true(),
          true(),
          false()
        ),
        saveInto: {
          a!save(
            local!paragraphValue,
            upper(save!value)
          )
        }
      ),
      a!radioButtonField(
        label: &amp;quot;T/F&amp;quot;,
        choiceLabels: {&amp;quot;True&amp;quot;, &amp;quot;False&amp;quot;},
        choiceValues: {true(), false()},
        value: local!checkboxValue,
        saveInto: {
          local!checkboxValue,
          a!save(
            local!paragraphValue,
            if(
              save!value = true(),
              &amp;quot;Need to display if flag is true&amp;quot;,
              local!paragraphValue
            )
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67809?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:34:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4a399fb-a07d-4ee7-a779-1645d5a7d35f</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Yes you are getting correct. But by adding this &amp;quot;value&amp;quot; syntax&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;saveInto: {&lt;/span&gt;&lt;br /&gt;&lt;span&gt;a!save(ri!requsetData.sampleField,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;if(rule!APN_isBlank(local!tempChangeFlag),&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{ri!requsetData.sampleField},&amp;quot;Need to Display if flag is true&amp;quot;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;),&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;above code is not working. Due to that this&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;quot;Need to Display if flag is true&amp;quot; text is not getting save.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;There is one checkbox on my interface page which is&amp;nbsp;denoting&amp;nbsp;flag. On selection of that flag value will change. I hope now you understood what i expected.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67808?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:29:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9907c796-97d2-4cc8-adb1-4eae7ef7c61a</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="24157" url="~/discussions/f/user-interface/17195/filed-value-saving-issue/67806"]Below line of code is making this code to display value in case of false.[/quote]
&lt;p&gt;I&amp;#39;m not sure what you mean by this - because the code doesn&amp;#39;t do what you seem to be saying.&amp;nbsp; This code snippet will cause the paragraph field to display a value of&amp;nbsp;&lt;strong&gt;&amp;quot;Need to Display if flag is true&amp;quot;&lt;/strong&gt;&amp;nbsp;if local!flag has&amp;nbsp;&lt;em&gt;any value at all&lt;/em&gt;, and if local!flag is&amp;nbsp;&lt;em&gt;null&lt;/em&gt;, then instead it will display &lt;strong&gt;&amp;quot;&amp;quot;&lt;/strong&gt; (i.e. blank).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Configured this way, the paragraph field will never display what the user has typed into it, if that&amp;#39;s your intention at any point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67806?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:22:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c055f35a-1520-44fc-a35b-2201c2a73c91</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;&amp;nbsp;Below line of code is making this code to display value in case of false.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;value: if(rule!APN_isBlank(local!flag),&amp;quot;&amp;quot;,&amp;quot;Need to Display if flag is true&amp;quot;),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyways thanks for your so call nice suggestion.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67802?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 14:51:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f91a6fe3-066b-4c35-a09d-5d01d90aa3ad</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m very unclear on what you&amp;#39;re actually trying to do in either of these examples.&amp;nbsp; In both cases, the user&amp;#39;s input value to the paragraph fields will never be displayed: in the first example you have no value: parameter set at all, and in the second example your value parameter would never lead to the saved data actually being displayed.&lt;/p&gt;
&lt;p&gt;My overall suggestion with this and all other SAIL issues would be, you should try to thoroughly learn what the core functionality actually does before doing something more advanced.&amp;nbsp; I would advise that you create a sandbox interface and start out with just a basic paragraph field that does a basic saveInto and displays its own value (the standard use case), then make step-by-step changes to that making sure it still works with every iterative change.&amp;nbsp; In this manner you will likely be able to figure out the answer to your use case on your own - though if you&amp;#39;re still stuck please feel free to post more replies here (preferably with updated code snippets posted &lt;em&gt;in Code Boxes&lt;/em&gt; using the &amp;quot;Insert -&amp;gt; Code&amp;quot; functionality).&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a super basic example to start with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;load(
  local!paragraphValue: null(),
  
  a!paragraphField(
    label: &amp;quot;Sample Field&amp;quot;,
    value: local!paragraphValue,
    saveInto: {
      a!save(
        local!paragraphValue,
        upper(save!value)
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67796?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 10:52:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83497486-cc3b-433f-b6b7-d9e5ca64d9e7</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;plz suggest correct approach. Main goal is to display text on true condition n that should be save in rule input variable. But if i remove &amp;quot;Value&amp;quot; syntex then its working fine. Plz correct my code if you have any idea about the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filed value saving issue</title><link>https://community.appian.com/thread/67794?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 09:57:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aafac2b4-0413-4fee-af93-3496a7b056e3</guid><dc:creator>Yash</dc:creator><description>&lt;p&gt;Hi Sauravk,&lt;/p&gt;
&lt;p&gt;On your first point , you enter any value in the text box it always check for the validation of that particular field first , if there is no validation matches then it will save the values into variable but in your case your looking for that in reverse order .&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>