I have added a dropdown (concept) in the registration form as “Patient Type”.
The dropdown must have any of the following value
general
insurance
other
I am trying to add custom validation so that the dropdown has to be selected in order to save the registration. This is what I have below in the fieldValidation.js
Hi @abiieez, please confirm if your field name and the fieldValidation keyname are same.
If you are comfortable can you try debugging javascript? I mean Chrome devtools->Inspect->Source->open fieldvalidation.js file and put a debug point.
Hi i thought you have linked your bahmniapps code to vagrant only then you can see the actual files. Otherwise you will see the minified js file for every app.
In the screen short you sent there is registration.min.xxxxxx.js file.
Open that file and click on {} symbol below to format which will formatted version of same registration min js file.
Find(CMD+F / CNTRL+F) “patientCommonController” word. once you find that u can scroll down to find handleUpdate method.
Continue to debug.
I can find the handleUpdate method after following your steps. However the break point doesnt seem to work on the formatted / pretty-print js file. Am I missing something ?