<?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>loading interface should hold Ids in rule input</title><link>https://community.appian.com/discussions/f/user-interface/13808/loading-interface-should-hold-ids-in-rule-input</link><description>load( /*rule!DDG_getSetupQuestions()*/ local!ques: rule!DDG_getSetupQuestions(), /*local!setUpResponse: rule!DDG_SetupQueResponseRule(),*/ /*local!answoption: rule!DDG_getSetQueAnsOption(6),*/ a!formLayout( label: &amp;quot;SetUp Questions for &amp;quot; &amp;amp; ri!OppData.Opportunity_Id</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: loading interface should hold Ids in rule input</title><link>https://community.appian.com/thread/62726?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 06:17:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50f4a906-027a-4f27-9bf3-49f6bfebd2fc</guid><dc:creator>sanjanas0001</dc:creator><description>Thanks Tim it worked for me.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loading interface should hold Ids in rule input</title><link>https://community.appian.com/thread/62695?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 13:56:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3cce0b6-8e87-40e5-9ca4-d4cde629f5f3</guid><dc:creator>chandu</dc:creator><description>Sanjana,&lt;br /&gt;
You can use the above code, Please not that the Question Id will not be saved if the user will not interact with the dropdown component.&lt;br /&gt;
If you want to save the data regardless of the interaction then you can use saveInto of the submit button&lt;br /&gt;
a!save(ri!SetQuestId,index(local!ques,&amp;quot;ID&amp;quot;,{}))&lt;br /&gt;
&lt;br /&gt;
Hope your Rule Input is of type Number Integer and multiple&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loading interface should hold Ids in rule input</title><link>https://community.appian.com/thread/62693?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 13:29:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8594bd29-ed88-4d08-954e-08ee2f69900c</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;I&amp;#39;ve assumed that ri!setUpQueResponse is a CDT array so I think the following change to your dropdownField should work. Give it a try and let us know if you&amp;#39;re not getting the desired result&lt;/p&gt;
&lt;p&gt;&lt;code&gt;a!dropdownField(&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;label: &amp;quot;option &amp;quot; &amp;amp; fv!index,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;placeholderLabel: &amp;quot;-- Select Answer -- &amp;quot;,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;choiceLabels: fv!item.SetAnsCDT.Options,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;choiceValues: fv!item.SetAnsCDT.Id,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;value: fv!item.SetAnsCDT[fv!index].Id,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;saveInto: {&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; ri!setUpQueResponse[fv!index].SetAnsId,&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; a!save(&lt;/code&gt;&lt;code&gt;ri!setUpQueResponse[fv!index].SetQuestId, fv!item.ID)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;},&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;required: true&lt;/code&gt;&lt;br /&gt;&lt;code&gt; )&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>