Handling Conditional Visibility/dependency in Kentico 13 FormBuilder

Kaur Navneet asked on August 8, 2024 08:33

Hi I am working with Kentico 13 and using the FormBuilder for form layout. In Kentico 11, I could use 'Field advanced settings' to apply visibility conditions directly. However, with Kentico 13, I don’t see a similar option. I need to show or hide the 'Age' field based on the value of the 'Street' field. How can I achieve this without using the 'Fields' settings? Any guidance or best practices would be appreciated!

@await Html.Kentico().FormZoneAsync("Name") @await Html.Kentico().FormZoneAsync("Street") @await Html.Kentico().FormZoneAsync("Age") @await Html.Kentico().FormZoneAsync("ZipCode")

Now I need to add Visibility condition: Street.Value.Contains("Yes") than Age Field Show/depend. How does it work without Fields

Image Text

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