How can I use collapsible category in a custom layout form ?

Monjoie Dominique asked on January 20, 2015 17:47


I have a form with more or less 80 fields to fulfill. When I use the default layout form (generated by Kentico), I have the collapsible categories which are very useful to avoid an endless form.

I'd like to create my own custom form but the use of the collapsible categories is not available.

Is there a solution to create custom form combined with collapsible categories or something eqivalent ?


Recent Answers

Brenden Kehren answered on January 20, 2015 18:46

Set visibility on the categories in the form based on other values on the form. You can do this in the fields/categories within the form fields themself.

For instance if you have 5 fields to capture data but only 3 are needed if you're a business (vs. an individual) you can add a dropdown list with those values (business, individual) and check the box towards the bottom that says has depending fields. Then in the Category for the Business questions in the visibility (towards the bottom) set the macro to DropDownFieldName.Value == 'business'. Then the categories fields will only show when 'business' is selected.

You could also accomplish this by using javascript, although I think the built-in tools will work fine.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.