<?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>Field value getting blank</title><link>https://community.appian.com/discussions/f/user-interface/17430/field-value-getting-blank</link><description>Hi , 
 
 Below code is displaying value in case of flag is true but in case of false it is keeping that field blank. 
 I don&amp;#39;t want to keep that field blank , it should not change on click of any button. 
 
 a!paragraphField( label: &amp;quot;Test&amp;quot;, value: if</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68715?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 19:00:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0073cf2f-62ff-4cc3-9513-e03f261e579f</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Thanks for your inputs.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68714?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:59:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c9eb8e9-e2ef-4ee2-8f12-b8363a724d7f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The issue appears to be that you&amp;#39;re not using &lt;em&gt;&lt;strong&gt;a!checkboxField&lt;/strong&gt;&lt;/em&gt; correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your code snippet, you&amp;#39;re basing the value of your checkboxField on &lt;em&gt;local!tempFlag&lt;/em&gt; while your &lt;em&gt;choiceValues&lt;/em&gt; value was just 1, while at the same time the saveInto of the checkbox field was attempting to save a string value into the same field.&amp;nbsp; The checkboxField is supposed to only store the value(s) seen in the &lt;em&gt;choiceValues&lt;/em&gt; array, and will only appear as checked when the value of the &lt;em&gt;value&lt;/em&gt; parameter matches what&amp;#39;s seen in&amp;nbsp;&lt;em&gt;choiceValues&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68713?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:53:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9efd05b-b4a0-4484-bc06-319654b3a3fe</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Thanks a lot men.&lt;/p&gt;
&lt;p&gt;Please if possible share what was the issue. How save event is displaying field value ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68711?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:39:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be5d706e-3c66-4cb1-9e5e-2a5293dab6b2</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;load(&lt;br /&gt; local!pagingInfo:a!pagingInfo(startIndex: 1,batchSize: 12),&lt;br /&gt; local!gridSelection: a!gridSelection(pagingInfo: local!pagingInfo),&lt;br /&gt; local!tempFlag,&lt;br /&gt; local!hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;with( &lt;br /&gt; a!formLayout(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; contents: {&lt;/p&gt;
&lt;p&gt;a!sectionLayout(&lt;br /&gt; label:&amp;quot;Hello&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;/p&gt;
&lt;p&gt;a!paragraphField(&lt;br /&gt; label: &amp;quot;Test&amp;quot;,&lt;br /&gt; value: local!hello,&lt;br /&gt; disabled: if(rule!APN_isBlank(local!tempFlag),false,true),&lt;br /&gt; saveInto: local!hello&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;a!checkboxField(&lt;br /&gt; label: &amp;quot;Hello to all&amp;quot;, &lt;br /&gt; choiceLabels: &amp;quot;Yes&amp;quot;,&lt;br /&gt; choiceValues: 1, &lt;br /&gt; value: local!tempFlag,&lt;br /&gt; saveInto: &lt;br /&gt; {&lt;br /&gt; local!tempFlag, if(not(rule!APN_isBlank(local!tempFlag)),a!save(local!hello,&lt;br /&gt; &amp;quot;Hello to all&amp;quot;),{}) &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;)})})})})&lt;br /&gt; ))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68710?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:34:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da4322a3-05bb-45e7-b998-18e0b07847d2</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
load(
  local!pagingInfo:a!pagingInfo(startIndex: 1,batchSize: 12),
  local!gridSelection: a!gridSelection(pagingInfo: local!pagingInfo),
  local!tempFlag,
  local!hello,
 

 
  with(    
    a!formLayout(
      label: &amp;quot;&amp;quot;,
      contents: {
        
          a!sectionLayout(
            label:&amp;quot;Hello&amp;quot;,
			    contents: {
              a!columnsLayout(
                columns: {
                  a!columnLayout(
                    contents: {
                   
                      a!paragraphField(
                        label: &amp;quot;Test&amp;quot;,
                        value: if(rule!APN_isBlank(local!tempFlag),&amp;quot;&amp;quot;,&amp;quot;Hello to all&amp;quot;),
                        disabled: if(rule!APN_isBlank(local!tempFlag),false,true),
                        saveInto: local!hello
						            
                      ),
                        
                       a!checkboxField(
                          label: &amp;quot;Hello to all&amp;quot;,  
                          choiceLabels: &amp;quot;Yes&amp;quot;,
                          choiceValues: 1,                           
                          value: local!tempFlag,
                          saveInto: 
                          {
                            local!tempFlag, if(not(rule!APN_isBlank(local!tempFlag)),a!save(
                              &amp;quot;Hello to all&amp;quot;),{}) 
                            }
                         
                    )})})})})
))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Plz find code snippet. I know its always easy to answer on full code snippet but sometime we do have limitation to share the code. So we tried always to share minimal code. Anyways i have cut down my code n attached here. Issue is whenever i click on any filed or even anywhere on screen value in the parahraph is getting null. I know this is becaue of value field condition. But i need that requirement also. On click of checkbox that text should be display.Kindly provide any solution on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68708?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:02:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07ad3546-86a5-4492-a2a7-91d89688ebbe</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;value is what gets displayed. When you saveInto to a variable, configure the value to show the value in the variable. saveInto and value should match so that you can see what you typed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68706?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:53:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff834493-d0ce-4194-9d1f-136ec2ce12ba</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what your use case is or what you&amp;#39;re asking.&amp;nbsp; What is the&amp;nbsp;data type of local!tempFlag - boolean?&amp;nbsp; Something else?&amp;nbsp; Are you saying the field is displaying different things after some button is clicked?&amp;nbsp; If that&amp;#39;s what you meant, then what is the configuration of your button?&amp;nbsp; In general I think you need to provide more detail before we can give a useful answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68705?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:51:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be3f1710-aac6-4bf3-947f-1d81de320eea</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;i haven&amp;#39;t added that line.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; saveInto: ri!testDataSet.field1&lt;/p&gt;
&lt;p&gt;I am clicking on any of field, previous value is getting blank on this field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field value getting blank</title><link>https://community.appian.com/thread/68704?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:49:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9380612e-3b2e-47e3-9577-6089f31d2720</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;You need to add saveInto parameter. Please review this documentation:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.2/enabling_user_interaction.html"&gt;https://docs.appian.com/suite/help/19.2/enabling_user_interaction.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>