Umbraco Forms Conditions not working

Any Umbraco masters out there no why the condition fields don’t seem to work in Umbraco forms.

I’ve tried them on ‘Groups’ and on individual fields with no joy. Either I’m missing something obvious or it’s a bit broke.

We’re running on Umbraco 10.5.1

Any help/tips would be appreciated.

Cheers


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/112218-umbraco-forms-conditions-not-working

In my case, I had overridden the default Forms .cshtml files, and the issue was the following:

  • The class umbraco-forms-form was missing from the div which wraps the form (the div with id="umbraco_form_xx”)

  • The class `umbraco-forms-page` was missing from the individual page (the form is multi page)

  • I was missing some lines in Scripts.cshtml

  • I had a field which was more of an information screen. This required adding a hidden field with the data-umb attribute to trigger the conditional script