Kentico Form Section Visibility

Charles Leek asked on May 19, 2022 12:03

Is it possible to make kentico Form Sections visible/not visible, so if a section were hidden, no fields in that section would appear, irrespective of their own visibility rules??

Recent Answers


Brenden Kehren answered on May 19, 2022 13:38

Anything is possible. What you need to define is how will you determine what section is visible and what section is not. What is the rule? Then we can determine how to go about it.

0 votesVote for this answer Mark as a Correct answer

Charles Leek answered on May 19, 2022 15:26

I would like to add form section properties similar to widget properties and have a checkbox that determines the section visibility. Maybe the form controls placed in the form section are stored in a collection that can be accessed through the form section code, and then be made visible/hidden?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 19, 2022 15:57

I created an example repo with this functionality in it for v13 .NET Core. You can also find where I talk about it on the Ask The Experts 7 video here.

0 votesVote for this answer Mark as a Correct answer

Charles Leek answered on May 19, 2022 16:07

Thanks for the information. Ill take a look through the example and the video and see if I can then achieve what I want. Ill keep you posted.

0 votesVote for this answer Mark as a Correct answer

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