forked from yaso_meth/mih-project
when Med Aid is selected as No. on submit the fields will be cleared
This commit is contained in:
@@ -523,6 +523,15 @@ class _EditPatientState extends State<EditPatient> {
|
||||
|
||||
void submitForm() {
|
||||
if (isFieldsFilled()) {
|
||||
if (!medRequired) {
|
||||
setState(() {
|
||||
medMainMemController.text = "";
|
||||
medNoController.text = "";
|
||||
medAidCodeController.text = "";
|
||||
medNameController.text = "";
|
||||
medSchemeController.text = "";
|
||||
});
|
||||
}
|
||||
updatePatientApiCall();
|
||||
} else {
|
||||
showDialog(
|
||||
|
||||
Reference in New Issue
Block a user