Change Select Dropdown options based on other Select Field value #1282
Unanswered
narangradhika24
asked this question in
Need help
Replies: 1 comment 1 reply
-
Hello @narangradhika24 we recently dealt with the same issue on our Discord channel, please check this and following messages. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
We have a select field,
field1
which usesloadOptions
to get the values for dropdown options and once we select a value forfield1
, an api should be triggered to fetch options forfield2
. (field2
is also a dropdown field usingloadOptions
). To trigger the api on everyfield1
change we are using useEffect hook in FieldListener and the api is triggered but the results are not updated in dropdownfield2
. The services we are using inloadOptions
are returning promises.The field2 options should basically update if we change field1 value and the options in the field2 dropdown should be fetched from service.
Can you please check if we are missing something here. Or is there some other approach we can do the same.
Schema :
FieldListener
Beta Was this translation helpful? Give feedback.
All reactions