Editor’s note: Follow contributor Abhisarika Singh @Abhisarika.
I’ve found a really easy way to make collapsible/hidden group of fields in a SharePoint list form using InfoPath 2010. The important thing is we can apply this in an existing list and can modify the form. Below are the steps we can use to make a hidden group of fields:
- Open the list in InfoPath 2010 and select Section from the menu bar:
- Select the section and insert a new table in that section.
- Then insert the fields in the table. As I mentioned, my list is already present and I like to hide the fields based on the conditions. So I just drag the fields from the field column to table rows and show them in a table. This table must be inside the section.
- Once we complete the table with the fields we would like to hide, based on our condition, we go to “section”. This is the important thing we need to do for hiding or showing our fields based on our condition.
Select the “section” and go to “Manage Rule”. Insert a new rule having the condition as per our requirement. In this example I’ve put a condition that if field “Request type= Deletion” then this employee’s details table will be hidden through the “formatting” rule or not displayed.
Then set the condition I mentioned above:
Go to formatting rule and select “hide this control”:
That’s it. Now you can see your form as per the condition you set.