<?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>When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/discussions/f/user-interface/20825/when-to-set-values-of-a-rule-input-which-are-hidden-to-a-user</link><description>Assume I have a form which saves many parameters into a rule input myDataDict of a custom data type with different entries, let&amp;#39;s say myDataDict.name (required field) and myDataDict.common is directly visible on my interface. However, in addition to the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/thread/81137?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 13:04:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd459c76-b08f-4222-966a-32a1409320e1</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You can also save as many fields as you need to using an array. For instance,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonWidget(
  label: &amp;quot;Submit&amp;quot;,
  submit: true,
  style: &amp;quot;PRIMARY&amp;quot;,
  saveInto: {
    a!save(
      target: ri!customer.updatedOn,
      value: now()
    ),
    a!save(
      target: ri!customer.updatedBy,
      value: loggedInUser()
    ),
    a!save(
      target: ri!cancel,
      value: false
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I always prefer using this method of saving data on the button because you can guarantee that all the other data has been entered - otherwise, the user wouldn&amp;#39;t be able to submit the form!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/thread/81136?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 13:00:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:503ae185-a827-4122-903a-60f4e833f435</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Adding to that, I recommend to keep to the best practice of using keyword syntax.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;saveInto: a!save(target: ri!abc, value: &amp;quot;abc&amp;quot;),&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/thread/81130?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 11:43:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7658893d-ec86-40ef-ba99-a85921336af3</guid><dc:creator>Arun Dubey</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;As per your requirement you can try this code&lt;/p&gt;
&lt;p&gt;a!buttonWidget(&lt;br /&gt; label: &amp;quot;Submit&amp;quot;,&lt;br /&gt;&lt;br /&gt; saveInto: a!save(ri!abc,&amp;quot;abc&amp;quot;),&lt;br /&gt; submit: true,&lt;br /&gt; style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/thread/81128?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 11:06:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e6dcb70-9ae6-4f17-bd9a-92712bb9be45</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;I am still not sure how exactly: May you share some code, please? Inside the saveInto() ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to set values of a rule input which are hidden to a user?</title><link>https://community.appian.com/thread/81127?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 10:59:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d87d9d2-bc35-4a2e-a514-97b852bea54f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do that in the submit button. Have very good experience with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>