<?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>How to assign a user selection to a local variable?</title><link>https://community.appian.com/discussions/f/user-interface/24649/how-to-assign-a-user-selection-to-a-local-variable</link><description>Hi, I&amp;#39;m needing some direction on how to assign a user selection to a local variable. For some context: There are several drop down selections on my interface. Based on what the user selects in each category will affect the total price. So I&amp;#39;m gathering</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to assign a user selection to a local variable?</title><link>https://community.appian.com/thread/95293?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 15:25:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5876bc1f-5b82-4665-b1dc-62bbe21fc9a8</guid><dc:creator>KristinForeyt</dc:creator><description>&lt;p&gt;I&amp;#39;ve been playing around with the local variables and have been able to get the user selections displaying, however (and I think this was my fault in explaining the situation) I need to assign my own amounts to whatever they select. This is a practice application for auto insurance coverage. So if the user selects 25,000 coverage for a specific category, I need to assign my own dollar amount for how much that&amp;#39;s going to add to the premium.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to assign a user selection to a local variable?</title><link>https://community.appian.com/thread/95287?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 14:23:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32f6b90a-efc6-441d-8f8d-e1d51b0eccd7</guid><dc:creator>KristinForeyt</dc:creator><description>&lt;p&gt;Thank you for the info! I am going to try and work it out with the information you&amp;#39;ve provided, but if I need more help I will respond back with more details. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to assign a user selection to a local variable?</title><link>https://community.appian.com/thread/95276?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 13:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a0749ff-5962-45e1-926a-964d20375851</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The solution to this ranges from very simple to rather complex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At the &amp;quot;very simple&amp;quot; end, all you need to do is set the component&amp;#39;s &lt;em&gt;saveInto:&lt;/em&gt; parameter to point at the local variable you want to save the dropdown&amp;#39;s value into.&amp;nbsp; At the same time it&amp;#39;s necessary to set its &lt;em&gt;value:&lt;/em&gt; parameter to the same local variable (or else the save will execute but then the dropdown will go back to looking &amp;quot;empty&amp;quot;, having no value).&lt;/p&gt;
&lt;p&gt;At the &amp;quot;rather complex&amp;quot; end, you can set up a separate local variable to calculate the running sum of any group of other ones.&amp;nbsp; You can use this directly for display purposes in any other field on your form.&lt;/p&gt;
&lt;p&gt;To be able to help in any real detail, we&amp;#39;ll need more context, as well as sample code for what you&amp;#39;ve tried so far (please use a code box, &amp;quot;Insert&amp;quot; --&amp;gt; &amp;quot;Insert Code&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>