joanpablo / reactive_forms

This is a model-driven approach to handling form inputs and validations, heavily inspired in Angular's Reactive Forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listen to change of ReactiveDropdownField outside the stepper widget class

SaddamMohsen opened this issue · comments

Hello, everyone i need help
I have a multiple reactive_form fields inside a stepper a number of form controls inside step1 and step2 and step3,
so the first step contains a ReactiveDropdownField with default value as null no item selected
what i need is disable next button in the stepper when there is no selected item in the dropdown after user select item it should be enabled i know i can to do that when all the steps inside the widget class that contains stepper but the problem is i get the steps from a function outside the widget class so when i select item in dropdown the next button in stepper doesn't enabled because the change of dropdown item doesn't rebuild the widget immediately
so i hope you undestand the problem and sorry for my weakness in English language

Hi @SaddamMohsen

Thanks for the question. Would you mind to elaborate more on the question? Is the Dropdown bound to a control of the FormGroup? Do you have only one FormGroup or a FormGroup for each step?

I also described when to use one FormGroup or several FormGroup within a parent ForGroup in here: issue 401

Hi @SaddamMohsen

Thanks for the question. Would you mind to elaborate more on the question? Is the Dropdown bound to a control of the FormGroup? Do you have only one FormGroup or a FormGroup for each step?

I also described when to use one FormGroup or several FormGroup within a parent ForGroup in here: issue 401

hello, thank you for response and sorry for my late response
I am using one FormGroup
i solve it already with ReactiveValueListenableBuilder

Thanks @SaddamMohsen for letting us know. Then I believe we can close this issue. Don't hesitate to create a new one if you have any other questions.