Cascading DropDowns in Dynamic Form

I'm having issues implementing Cascading DropDowns inside of a dynamic form.
I have a working non-dynamic set of Cascading DropDowns, but I keep getting the following error when attempting to implement it dynamically.

I believe the issue is to do with how I have set the data value, as the error does not occur when either...

  • The Delta dropdown has no data assigned
  • The data assigned to the Delta dropdown is not cascaded

Error Message:
image

Code:

HTML:

Any advice or guidance would be greatly appreciated.

There is a null reference somewhere in your razor. You can use null check operator .? to avoid this.

1 Like

Here is my solution In-case anyone has a similar issue.

HTML: