diff --git a/lib/ui/process_ui/widgets/dropdown_control.dart b/lib/ui/process_ui/widgets/dropdown_control.dart index c783d297..2b009530 100644 --- a/lib/ui/process_ui/widgets/dropdown_control.dart +++ b/lib/ui/process_ui/widgets/dropdown_control.dart @@ -113,8 +113,8 @@ class _CustomDropDownState extends State { temp.forEach((element) { if (element!.code == value.code && element.langCode == code) { registrationTaskProvider.addSimpleTypeDemographicField( - widget.field.id ?? "", value.name, code); - registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code); + widget.field.id ?? "", element.name, code); + registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code); } }); } diff --git a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart index f6a86e73..7890a41a 100644 --- a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart +++ b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart @@ -60,8 +60,8 @@ class _CustomDynamicDropDownState extends State { temp.forEach((element) { if (element!.code == value.code && element.langCode == code) { registrationTaskProvider.addSimpleTypeDemographicField( - widget.field.id ?? "", value.name, code); - registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code); + widget.field.id ?? "", element.name, code); + registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code); } }); }