@darius It only shows how to hide and show sections.
What I am trying to do is as follows:
-
I have added an identifier field using @craigappl method which works instead of the manual identifier Need help defining the app.json for multiple patient identifiers in the registration app and identifier location error
-
The identifier is not required so at times its left blank so the validation fails. I would like to disable the field when empty before submission so that its not sent
However following your link to registerPatient.js I see submit functionality here https://github.com/openmrs/openmrs-module-registrationapp/blob/ca3a9430220c941a75999438e2c63feae139efb8/omod/src/main/webapp/resources/scripts/registerPatient.js#L151-L168 but do not see how to intercept the submit call