Relative Content

Tag Archive for jsonangularformsangular-reactive-formsdynamic-forms

Angular Dynamic Reactive select option form

I’m building a multi-step form in Angular where users can create a Dungeons & Dragons character. In one of the steps, after the user selects a class (Bard, Cleric), they need to choose one equipment option from a list provided by a dummy data.ts file. Each equipment choice offers either an item or an alternate option.
I need to dynamically populate the equipmentChoice field in the form based on the selected class. Once populated, the user should be able to choose either the item or the alternate for each equipment choice, if item is selected, alternate shoud be disabled.