Form Field Visibility Conditions

Vishal Bhatt asked on August 23, 2024 12:31

I have create form builder section for my kentico 13 application I have used the code like below

<div class="row">
    <div class="col-md-4 col-sm-12 col-xs-12">
        @await Html.Kentico().FormZoneAsync("Age")
    </div>

    <div class="col-md-8 col-sm-12 col-xs-12 div-margin-top gender">
        @await Html.Kentico().FormZoneAsync("Gender")
    </div>
</div>

I have created the form successfully from the admin panel now I want to add multiple visibility conditions in my form fields like (Age is greater than 20 and less than 50) how I can achieve this? Also, I want to visible my one field on behalf of two different fields' value.

Recent Answers


Laura Frese answered on October 3, 2024 00:16 (last edited on October 3, 2024 00:24)

Have you used the form conditions in the form builder? See this documentation

  1. Open the Forms application.
  2. Edit () a form.
  3. Switch to the Form builder tab.
  4. Click on the field whose visibility condition you wish to configure.
  5. On the properties panel, switch to the Visibility tab.
    • Select from the available options:
    • Always – the field is always visible. This is the default state for all fields.
    • Never – the field is always hidden. Useful if you need to remove a field from the form but want to keep its associated data stored in the system.*

For something more custom try this documentation

0 votesVote for this answer Mark as a Correct answer

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