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() {
|
void submitForm() {
|
||||||
if (isFieldsFilled()) {
|
if (isFieldsFilled()) {
|
||||||
|
if (!medRequired) {
|
||||||
|
setState(() {
|
||||||
|
medMainMemController.text = "";
|
||||||
|
medNoController.text = "";
|
||||||
|
medAidCodeController.text = "";
|
||||||
|
medNameController.text = "";
|
||||||
|
medSchemeController.text = "";
|
||||||
|
});
|
||||||
|
}
|
||||||
updatePatientApiCall();
|
updatePatientApiCall();
|
||||||
} else {
|
} else {
|
||||||
showDialog(
|
showDialog(
|
||||||
|
|||||||
Reference in New Issue
Block a user