<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Dynamic dropdown lists and rows within a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/122046.aspx</link><pubDate>Mon, 25 Nov 2019 20:28:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122046</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122046</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;For the first part, I&amp;#39;d use an XML file (or a SharePoint List) for the data source for the dropdowns. Then you can add filters to the dropdown in the repeating table to only display the matching items. If your dropdowns have hardcoded values, this isn&amp;#39;t possible. So - if you are using SharePoint already, maybe just create a simple list with two columns, Title and ReportType (for example) - ReportType would be A, B, C. In your form, the Report dropdown uses values from the ReportType column (select the option to only display unique items) and then in the repeating table dropdown, you can filter the options based on the Report type selection.&lt;/p&gt;&lt;p&gt;For the second part - you can sort of do this without code if you use default&amp;nbsp;data. That involves adding&amp;nbsp;the max number of rows you expect to have to your repeating table and using conditional formatting to hide the&amp;nbsp;ones you don&amp;#39;t need. Here&amp;#39;s a video that outlines this (among other techniques):&amp;nbsp;&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=W4ukzlaQBpM"&gt;https://www.youtube.com/watch?v=W4ukzlaQBpM&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Dynamic dropdown lists and rows within a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/122043.aspx</link><pubDate>Mon, 25 Nov 2019 18:16:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122043</guid><dc:creator>gclode</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122043</wfw:commentRss><description>I am attempting to build out an InfoPath form with a repeating table that is dynamic and I was curious to see if what I wish to accomplish is possible as I have not been able to find an answer anywhere. 

I have a form with a drop-down with the choices A, B, and C. This is not in the repeating table. Then one field in the repeating table is called REPORT, this is the one I would like to be dynamic. What I would like to have happen is if a user selects A then the drop-down list only shows the items for the &amp;quot;A&amp;quot; source in the drop-down. If they select B then only the &amp;quot;B&amp;quot; sources are listed in the drop-down, etc. 

The second thing, and this may not be possible, would be to have the repeating table then dynamically add the correct number of rows based on the number of items in the source list. So if the source selected was A and A has 30 items in it, then 30 rows are displayed in the table. 

In a perfect world, each row would already have the dynamic drop-down pre-fill with each unique item in the source list. This could be a text box as well if they are able to be filled in automatically. 

So the end result would be a repeating table that adds the matching number of rows based on the number of items in the source as well as fill in each REPORT field within each row with the unique values from the source. 

I hope this made sense, and it may be too complex for InfoPath to do, I figured I would ask before I find a work around. 

Thanks!</description></item></channel></rss>