Filtering repeating section values based on selecting a value from dropdown
-
Friday, December 03, 2010 9:56 PM
I have a repeating section in InfoPath 2010 which has questions associated to certain levels. The questions with associated levels are coming from Sharepoint 2010 list.
I also have a dropdown where user can select which level question they want to see.
I have tried few things here.
(1)Written code in c# on change of this dropdown to populate the questions in the repeating section only if the level is what the user has selected.
It works perfectly fine on the client side but when I publish it as a form template onto SharePoint 2010 all the questions show up without any filtering.
appreciate any insights.
(2)I have also tried using conditional formatting, adding rules to hide the control(repeating section) if the questions level is no equal to the level selected in drop down. This also works gr8 on client side but not when published to Share point as browser enabled form template.
Can anyone tell me why this might be happening?
All Replies
-
Sunday, December 05, 2010 7:11 AM
Did you also try changing the Postback settings on the drop-down list box to Always (Drop-Down List Box Properties > Browser forms tab) and see whether that solves the issue?
S.Y.M. Wong-A-Ton, owner of the InfoPath Solutions Blog, and author of 100+ InfoPath articles and 40+ InfoPath - SharePoint integration articles- Marked As Answer by GECAKMicrosoft Tuesday, December 07, 2010 10:17 PM
-
Monday, December 06, 2010 3:41 PM
I tried to use Always for postback settings, but that doesnot help.
Is this kind of filtering allowed at all for browser enabled forms?
Appreciate any help..
Thanks.
-
Tuesday, December 07, 2010 5:34 AM
Yes, it should work.
As a test, I created a browser form in IP 2010 with a data connection to a SP 2010 list that has both a drop-down and repeating section getting data from the Secondary data source to the SP list and used conditional formatting to filter. It works for me without any extra configuration on either the drop-down or repeating section.
S.Y.M. Wong-A-Ton, owner of the InfoPath Solutions Blog, and author of 100+ InfoPath articles and 40+ InfoPath - SharePoint integration articles- Marked As Answer by GECAKMicrosoft Tuesday, December 07, 2010 10:17 PM

